mpich-3.3.1单机安装

tar xzvf mpich-3.3.1.tar.gz
mkdir mpich-3.3.1/build; chdir mpich-3.3.1/build
../confiure --prefix=/usr/local/mpich-3.3.1
make
sudo make install

出现如下错误

  • Consider setting CROSS_F77_SIZEOF_INTEGER to the length in bytes of a Fortran INTEGER
  • 问题原因
    未找到fortran库

解决方法:

export FC=gfortran
export F77=gfortran
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/gcc-4.8.1/lib:/usr/local/gcc-4.8.1/libexe

参考:https://unix.stackexchange.com/questions/356554/install-mpich-on-centos-error-could-not-determine-the-size-of-a-fortran-integer

你可能感兴趣的:(fortran,mpi-并行运算)