Installing PnetCDF
Procedure
- Download the PnetCDF source package.
- Upload the source package to its installation directory on the server, for example, /path/to/download/pnetcdf.
- Go to the source package directory.
cd /path/to/download/pnetcdf
- Decompress the installation package.
tar -zxvf pnetcdf-1.11.2.tar.gz
- Switch to the directory of the configure script.
cd pnetcdf-1.11.2
- Install PnetCDF.
./configure --prefix=/path/to/install/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
- Set the environment variables.
export PATH=/path/to/install/PNETCDF/bin:$PATH export LD_LIBRARY_PATH=/path/to/install/PNETCDF/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment