linux install eccodes environment

There sudo privileges of linux

The first step in installing gcc in linux environment and gfortran

The second step installation cmake 

The third step is to download the corresponding packet eccodes

the fourth step 

> tar -xzf  eccodes-x.y.z-Source.tar.gz
> mkdir build ; cd build
 
> cmake -DCMAKE_INSTALL_PREFIX=/path/to/where/you/install/eccodes ../eccodes-x.y.z-Source
...
 
> make
> ctest
> make install
 
The fifth step to add environment variables

export ECC_PY=/path/to/where/you/install/eccodes/lib64/python2.7/site-packages
export PYTHONPATH=$ECC_PY:$PYTHONPATH

export ECC_BIN=/path/to/install/bin
export PATH=$ECC_BIN:$PATH

Guess you like

Origin www.cnblogs.com/xiaoxiaoshuaishuai0219/p/11987379.html