Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the NCEPLIBS installation package directory.
    cd /path/to/NCEPLIBS
  3. Decompress the NCEPLIBS installation package.
    tar -zxvf NCEPLIBS-1.2.0.tar.gz
  4. Go to the directory generated after the decompression.
    cd NCEPLIBS-1.2.0
  5. Modify the download addresses in the CMakeList file.
    1. Open the CMakeList file.

      vi /path/to/NCEPLIBS/NCEPLIBS-1.2.0/CMakeLists.txt

    2. Press i to enter the edit mode and change https in lines 153, 186, and 215 to git.
      set(GIT_URL    "git://github.com/noaa-emc/nceplibs-${lib}")
      set(GIT_URL    "git://github.com/noaa-emc/emc_crtm")
      set(GIT_URL    "git://github.com/noaa-emc/emc_post")

      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. Create the build and nceplibs directories, and go to the build directory.
    mkdir -p build && mkdir nceplibs
    cd build
  7. Build the software.
    CC=mpicc CXX=mpicxx FC=mpif90 cmake ../ -DCMAKE_INSTALL_PREFIX=../nceplibs -DCMAKE_VERBOSE_MAKEFILE=on

  8. Perform the compilation and installation.
    make