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. Decompress the NetCDF-C installation package.
    tar -zxvf netcdf-fortran-4.4.5.tar.gz
  3. Go to the directory generated after the decompression.
    cd netcdf-fortran-4.4.5
  4. Perform the configuration.
    ./configure --prefix=/path/to/NETCDF --enable-shared --with-pic --disable-doxygen --enable-largefile --enable-static CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort F90=mpifort CFLAGS="-O3 -fPIC -Wno-incompatible-pointer-types-discards-qualifiers -Wno-non-literal-null-conversion" CXXFLAGS="-O3 -fPIC -Wno-incompatible-pointer-types-discards-qualifiers" FCFLAGS="-O3 -fPIC" FFLAGS="-O3 -fPIC"
  5. Modify the libtool file in the current directory.
    1. Open the libtool file.
      vi libtool
    2. Press i to enter the insert mode and modify all the items of wl="" in the file.
      wl="-Wl,"

      After performing 5.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Perform the compilation and installation.
    make
    make install