Rate This Document
Findability
Accuracy
Completeness
Readability

Installing G2Clib

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Create an installation directory.
    mkdir -p /path/to/g2clib
  3. Go to the installation directory.
    cd /path/to/g2clib
  4. Obtain the source package.
    wget http://www.ncl.ucar.edu/Download/files/g2clib-1.6.0-patch.tar.gz
  5. Decompress the source package.
    tar -zxvf g2clib-1.6.0-patch.tar.gz
  6. Go to the directory generated after the decompression.
    cd g2clib-1.6.0-patch/
  7. Configure the compilation.
    1. Open the compilation file.
      vi /path/to/g2clib/g2clib-1.6.0-patch/makefile
    2. Press i to enter the edit mode and modify lines 22 and 33 of the file.

      After performing 7.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.
  8. Perform the compilation and installation.
    make all
    mv libgrib2c.a /usr/local/lib
    cp grib2.h /usr/local/include