Installing PnetCDF
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the PnetCDF installation package.
tar -xvf parallel-netcdf-1.9.0.tar.gz
- Go to the directory generated after the decompression.
cd parallel-netcdf-1.9.0
- Perform the configuration.
./configure --prefix=/path/to/PNETCDF --enable-shared CC=mpicc --disable-dap FC=mpif90 CXX=mpicxx
- Perform the compilation and installation.
make make install
- Set 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