Installing PnetCDF
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the PnetCDF installation package.
tar xf pnetcdf-1.12.2.tar.gz
- Go to the directory generated after the decompression.
cd pnetcdf-1.12.2
- Perform the configuration.
./configure --prefix=/path/to/PNETCDF --build=aarch64-unknown-linux-gnu CFLAGS="-O3 -fPIC -Wno-incompatible-pointer-types-discards-qualifiers -Wno-non-literal-null-conversion" CXXFLAGS="-O3 -fPIC -Wno-incompatible-pointer-types-discards-qualifiers -Wno-non-literal-null-conversion" FCFLAGS="-O3 -fPIC" FFLAGS="-O3 -fPIC" CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort F90=mpifort
- Perform the compilation and installation.
make -j 64 make install
- Load the PnetCDF environment variables.
export PATH=/path/to/PNETCDF/bin:$PATH export LD_LIBRARY_PATH=/path/to/PNETCDF/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment