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 ecCodes installation package directory.
    cd /path/to/ECCODES
  3. Install the dependencies.
    yum install -y openjpeg-devel python-devel numpy
  4. Decompress the ecCodes installation package.
    tar -zxvf eccodes-2.18.0-Source.tar.gz
  5. Go to the directory generated after the decompression.
    cd eccodes-2.18.0-Source
  6. Create a build directory.
    mkdir build
    cd build
  7. Configure the pre-compilation environment.
    export CC=`which clang`
    export CXX=`which clang++`
    export FC=`which flang`
    cmake ../../eccodes-2.18.0-Source -DCMAKE_INSTALL_PREFIX=/path/to/ECCODES

    Output for the start:

    Output for the end:

  8. Perform the compilation.
    make -j 8

    Output for the start:

    Output for the end:

  9. Perform the test.
    ctest

  10. Perform the installation.
    make install

  11. Set the environment variables.
    export PATH=/path/to/ECCODES/bin:$PATH