Installing PnetCDF
- Use PuTTY to log in to the server as the root user.
- Set the environment variables.
export PATH=/path/to/GNU/bin:/path/to/OPENMPI/bin:$PATH export LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
- Decompress the PnetCDF installation package.
tar -xvf parallel-netcdf-1.11.2.tar.gz
- Go to the directory generated after the decompression.
cd parallel-netcdf-1.11.2
- Create a /path/to/PNETCDF directory.
mkdir -p /path/to/PNETCDF
- Perform the configuration.
./configure --prefix=/path/to/PNETCDF --build=aarch64-unknown-linux-gnu CFLAGS="-fPIC -DPIC" CXXFLAGS="-fPIC -DPIC" FCFLAGS="-fPIC" FFLAGS="-fPIC" CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort
- Perform the compilation and installation.
make -j 16 make install
Parent topic: Configuring the Compilation Environment