source libraries.sh # mpich-3.0.4 tar xzvf mpich-3.0.4.tar.gz cd mpich-3.0.4 ./configure --prefix=$DIR/mpich make make install cd .. rm -rf mpich-3.0.4 source libraries.sh # zlib-1.2.7 tar xzvf zlib-1.2.7.tar.gz cd zlib-1.2.7 ./configure --prefix=$DIR/grib2 make make install cd .. rm -rf zlib-1.2.7 source libraries.sh # libpng-1.2.50 tar xzvf libpng-1.2.50.tar.gz cd libpng-1.2.50 ./configure --prefix=$DIR/grib2 make make install cd .. rm -rf libpng-1.2.50 source libraries.sh # jasper-1.900.1 tar xzvf jasper-1.900.1.tar.gz cd jasper-1.900.1 ./configure --prefix=$DIR/grib2 make make install cd .. rm -rf jasper-1.900.1 source libraries.sh
tar xzvf zlib-1.2.7.tar.gz cd zlib-1.2.7 ./configure --prefix=$DIR/hdf5 make make install cd .. rm -rf zlib-1.2.7 source libraries.sh # hdf5-1.10.5 tar xzvf hdf5-1.10.5.tar.gz cd hdf5-1.10.5/ ./configure --prefix=$DIR/hdf5 --with-zlib=$DIR/hdf5 make make install cd .. rm -rf hdf5-1.10.5 source libraries.sh # netcdf-c-4.8.1 unzip netcdf-c-4.8.1.zip cd netcdf-c-4.8.1/ CPPFLAGS="-I$DIR/hdf5/include" LDFLAGS="-L$DIR/hdf5/lib" ./configure --prefix=$DIR/netcdf --enable-netcdf-4 --enable-netcdf4 --enable-shared --disable-dap make make install cd .. rm -rf netcdf-c-4.8.1 source libraries.sh # netcdf-fortran-4.5.4 unzip netcdf-fortran-4.5.4.zip cd netcdf-fortran-4.5.4/ CPPFLAGS="-I$DIR/netcdf/include" LDFLAGS="-L$DIR/netcdf/lib" ./configure --prefix=$DIR/netcdf make make install cd .. rm -rf netcdf-fortran-4.5.4 source libraries.sh # netcdf-cxx4-4.3.1 unzip netcdf-cxx4-4.3.1.zip cd netcdf-cxx4-4.3.1/ CPPFLAGS="-I$DIR/hdf5/include -I$DIR/netcdf/include" LDFLAGS="-L$DIR/hdf5/lib -L$DIR/netcdf/lib" ./configure --prefix=$DIR/netcdf make make install cd .. rm -rf netcdf-cxx4-4.3.1 source libraries.sh # openmpi-3.0.0 tar xzvf openmpi-3.0.0.tar.tar cd openmpi-3.0.0 ./configure --prefix=$DIR/openmpi3.0.0 make make install cd .. rm -rf openmpi-3.0.0 source libraries.sh