1 grads-2.2.1/src文件夹下,注释gradspy.c掉非操作系统一行
也可能需要执行下面命令:sudo yum install *python-devel.x86_64
python3 -m pip install --upgrade pip
python3 -m pip install numpy)
折腾半天,原来只能用python2。安完python2
2 python2 setup.py install
错误:fatal error: Python.h: No such file or directory
yum install python2-devel
python2 -m pip install --upgrade pip
python2 -m pip install numpy
sudo ln -s /usr/lib64/python2.7/site-packages/numpy/core/include/numpy /usr/include/numpy
python2 setup.py install
3配置环境
3.1修改gradrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/
source .bashrc
3.2其它
yum install netcdf
yum install netcdf-devel
yum install libgeotiff
yum install libpng15
sudo ln -s /lib64/libreadline.so.7.0 libreadline.so.6
sudo ln -s /lib64/libncurses.so.6 libncurses.so.5
sudo ln -s /lib64/libtinfo.so.6 libtinfo.so.5
sudo ln -s /lib64/libpng15.so.15 libpng15.so.15
sudo ln -s /lib64/libnetcdf.so.15 libnetcdf.so.7
sudo ln -s /lib64/libhdf5_hl.so.100 libhdf5_hl.so.8
sudo ln -s /lib64/libhdf5.so.103 libhdf5.so.8
sudo ln -s /lib64/libssl.so.1.1.1 libssl.so.10
sudo ln -s /lib64/libcrypto.so.1.1 libcrypto.so.10
sudo ln -s /lib64/libtiff.so.5 libtiff.so.3
sudo ln -s /lib64/libgeotiff.so.5 libgeotiff.so
sudo ln -s /lib64/
sudo ln -s /lib64/