Rate This Document
Findability
Accuracy
Completeness
Readability

Installing NetCDF

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Set the environment variables.
    export PATH=/path/to/GNU/bin: $PATH
    export LD_LIBRARY_PATH=/path/to/GNU/lib64: $LD_LIBRARY_PATH
  3. Install the base dependencies.
    yum install curl* -y
  4. Decompress the NetCDF installation package.
    tar -xvf netcdf-4.7.3.tar.gz
  5. Go to the directory generated after the decompression.
    cd netcdf-c-4.7.3
  6. Create a /path/to/NETCDF directory.
    mkdir -p /path/to/NETCDF
  7. Perform the configuration.
    ./configure --prefix=/path/to/NETCDF --build=aarch64-unknown-linux-gnu --enable-shared --enable-netcdf-4 --enable-dap --with-pic --disable-doxygen --enable-static --enable-largefile CC=gcc CXX=g++ FC=gfortran F77=gfortran 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"
  8. Perform the compilation and installation.
    make -j 16
    make install