对3.0以上版本有效。
1.configure
配置环境时常常遇到mpi库的链接问题,如果是类似Intel openmpi的包,直接configure即可,如Keeling;
对于Blue Waters,需要手动链接:
./configure MPICC=cc CC=cc MPICXX=CC CXX=CC LDFLAGS="-dynamic"
2.make
遇见报错:aclocal-1.14: command not found
先安装autoconf,再安装automake
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xvzf autoconf-2.69.tar.gz
cd autoconf-2.69
对于普通非root账户,更改configure中安装路径ac_default_prefix=/usr/local为自己的,如下方,然后./configure,或者 ./configure --prefix=绝对路径:
ac_default_prefix=~
接下来安装:
make &&make install
后面编译源码安装时操作相同。
make install报错:configure: error: no acceptable m4 could be found in $PATH
wget -O m4-1.4.9.tar.gz http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gztar -zvxf m4-1.4.9.tar.gz
cd m4-1.4.9
修改安装目录后:
./configure
make&&make install
这里make需要将prefix/bin加入PATH:
export PATH=~/bin:$PATH
然后安装autoconf。
最后要安装automake:
wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
后面类似。