Rate This Document
Findability
Accuracy
Completeness
Readability

Installing NetCDF-C

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the NetCDF-C installation package.
    tar -zxvf netcdf-c-4.7.0.tar.gz
  3. Go to the directory generated after the decompression.
    cd netcdf-c-4.7.0
  4. Perform the 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 CPPFLAGS="-I/path/to/HDF5/include " LDFLAGS="-L/path/to/HDF5/lib -Wl,-rpath=/path/to/HDF5/lib " CFLAGS="-L/path/to/HDF5/lib -I/path/to/HDF5/include"
  5. Perform the compilation and installation.
    make -j
    make install
  6. 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