Rate This Document
Findability
Accuracy
Completeness
Readability

Installing NetCDF-Fortran

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the NetCDF-Fortran installation package:
    tar -xvf netcdf-fortran-4.4.1.tar.gz
  3. Run the following command to switch to the directory containing the decompressed files:
    cd netcdf-fortran-4.4.1
  4. Run the following command perform configuration:
    ./configure --prefix=/path/to/NETCDF --build=aarch64-unknown-linux-gnu --enable-shared --with-pic --disable-doxygen --enable-largefile --enable-static CPPFLAGS="-I/path/to/HDF5/include -I/path/to/NETCDF/include"  LDFLAGS="-L/path/to/HDF5/lib -L/path/to/NETCDF/lib -Wl,-rpath=/path/to/HDF5/lib -Wl,-rpath=/path/to/NETCDF/lib "  CFLAGS="-L/path/to/HDF5/lib -L/path/to/NETCDF/lib -I/path/to/HDF5/include -I/path/to/NETCDF/include "  CXXFLAGS="-L/path/to/HDF5/lib -L/path/to/NETCDF/lib -I/path/to/HDF5/include -I/path/to/NETCDF/include "  FCFLAGS="-L/path/to/HDF5/lib -L/path/to/NETCDF/lib -I/path/to/HDF5/include -I/path/to/NETCDF/include "
  5. Run the following commands to perform compilation and installation:
    make -j 20
    make install
  6. Run the following command to delete the environment variables:
    unset CC CXX FC F77 MPICC MPICXX MPIFC