對(duì)3.0以上版本有效够坐。
1.configure
配置環(huán)境時(shí)常常遇到mpi庫(kù)的鏈接問(wèn)題晋控,如果是類似Intel openmpi的包恤煞,直接configure即可,如Keeling侄柔;
對(duì)于Blue Waters,需要手動(dòng)鏈接:
./configure MPICC=cc CC=cc MPICXX=CC CXX=CC LDFLAGS="-dynamic"
2.make
遇見(jiàn)報(bào)錯(cuò):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
對(duì)于普通非root賬戶,更改configure中安裝路徑ac_default_prefix=/usr/local為自己的暂题,如下方移剪,然后./configure,或者 ./configure --prefix=絕對(duì)路徑:
ac_default_prefix=~
接下來(lái)安裝:
make &&make install
后面編譯源碼安裝時(shí)操作相同薪者。
make install報(bào)錯(cuò):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
后面類似。