Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install dependencies:
yum install openjpeg-devel jasper-devel python-devel numpy -y
- Run the following command to go to the main program installation directory:
cd /path/to/ECCODES
- Run the following command to decompress the package:
tar -xvf eccodes-2.18.0-Source.tar.gz
- Run the following command to go to the directory generated after decompression:
cd eccodes-2.18.0-Source
- Run the following commands to create the build directory.
mkdir build cd build
- Run the following command:
cmake ../../eccodes-2.18.0-Source -DCMAKE_INSTALL_PREFIX=/path/to/ECCODES
- Run the following commands to perform compilation, testing, and installation:
make -j 16 ctest make install
- Run the following command to set environment variables:
export PATH=/path/to/ECCODES/bin:$PATH
Parent topic: ecCodes 2.18.0 Porting Guide (CentOS 7.6)