Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the ecCodes installation package directory.
cd /path/to/ECCODES
- Install the dependencies.
yum install -y openjpeg-devel python-devel numpy
- Decompress the ecCodes installation package.
tar -zxvf eccodes-2.18.0-Source.tar.gz
- Go to the directory generated after the decompression.
cd eccodes-2.18.0-Source
- Create a build directory.
mkdir build cd build
- 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:

- Perform the compilation.
make -j 8
Output for the start:

Output for the end:

- Perform the test.
ctest

- Perform the installation.
make install

- Set the environment variables.
export PATH=/path/to/ECCODES/bin:$PATH
Parent topic: ecCodes 2.18.0 Porting Guide (openEuler 20.03)