一、安装依赖包
yum group install 'Development Tools ' yum install zlib-devel -y yum install libpng-devel -y yum install openssl-devel -y yum -y install gcc gcc-c++ openssl openssl-devel tar
二、下载wgrib2编译包 并且解压,修改makefiletar xvf wgrib2.tgz.v3.1.2 # 当前目录会有grib2目录
# 修改makefile内容
vim /grib2/makefile
# 取消以下注释并修改语句
export CC=gcc # 默认是注释的
export FC=gfortra # 默认是注释的
USE_ACE=0 # 默认值是1
三、执行make目录&配置环境变量
cd /grib2 make install # 配置环境变量 export PATH=/opt/grib2/wgrib2:$PATH source /etc/profile
标签:wgrib2,cmake,devel,yum,grib2,install,linux,export From: https://www.cnblogs.com/lxp5/p/17748242.html