Installing PnetCDF
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the PnetCDF installation package:
tar -xvf parallel-netcdf-1.8.0.tar.bz2
- Run the following command to go to the directory generated after the decompression:
cd parallel-netcdf-1.8.0
- Run the following command to perform the configuration:
./configure --prefix=/path/to/PNETCDF --build=aarch64-unknown-linux-gnu CFLAGS="-fPIC -DPIC" CXXFLAGS="-fPIC -DPIC" FCFLAGS="-fPIC" FFLAGS="-fPIC"
- Run the following commands to compile and install PnetCDF.
make -j 16 make install
- Run the following commands to load the 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