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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章