Installing NetCDF-C
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to decompress the NetCDF-C installation package:
tar -zxvf netcdf-c-4.4.1.1.tar.gz
- Run the following command to switch to the directory generated after the package is decompressed:
cd netcdf-c-4.4.1.1
- Run the following command to perform configuration:
./configure --prefix=/path/to/NETCDF --build=aarch64-linux --enable-fortran --disable-static --enable-shared --with-pic --enable-parallel-tests --enable-pnetcdf --enable-large-file-tests --enable-largefile
- Run the following commands to perform compilation and installation:
make -j make install
- Run the following commands to 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