export CC=clang export CXX=clang++ export FC=flang export MPICC=mpicc export MPICXX=mpicxx export MPIFC=mpifort
添加之后,后续安装可以不再重复添加。
tar -vxf zlib-1.2.11.tar.gz cd zlib-1.2.11
./configure -prefix=/path/to/ZLIB make make install
export LD_LIBRARY_PATH=/path/to/ZLIB/lib:$LD_LIBRARY_PATH export ZLIB=/path/to/ZLIB