在linux下用源代码编译MPICH 3.1.4

cd ~

wget http://www.mpich.org/static/downloads/3.1.4/mpich-3.1.4.tar.gz

tar -xzvf mpich-3.1.4.tar.gz

cd mpich-3.1.4

mkdir /usr/local/share/mpich-3.1.4

./configure -prefix=/usr/local/share/mpich-3.1.4/ |& tee c.txt

make 2>&1 | tee m.txt

make install PACKAGE=mpich-3.1.4

make installcheck PACKAGE=mpich-3.1.4

cd ~

cat >> /etc/profile <

PATH=/usr/local/share/mpich-3.1.4/bin:$PATH

EOF

source /etc/profile

which mpicc

which mpiexec

你可能感兴趣的:(C++,linux,mpich,源码,编译,3.1.4)