Installing NetCDF-C
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the NetCDF-C installation package.
tar -xvf netcdf-c-4.4.1.1.tar.gz
- Go to the directory generated after the decompression.
cd netcdf-c-4.4.1.1
- Perform the configuration.
./configure --prefix=/path/to/NETCDF LDFLAGS="-L/path/to/HDF5/lib" CPPFLAGS="-I/path/to/HDF5/include" CC=mpicc --disable-dap
- Perform the installation.
make -j make install
- Set the NetCDF-C environment variables.
export PATH=/path/to/NETCDF/bin:$PATH export LD_LIBRARY_PATH=/path/to/NETCDF/lib:$LD_LIBRARY_PATH export NETCDF=/path/to/NETCDF
Parent topic: Configuring the Compilation Environment