您的位置:首页 > 运维架构 > Linux

Linux下WRF学习初体验(一)

2018-01-25 22:15 260 查看
1.NetCDF4.1.3安装

sudo ./configure --disable-netcdf-4 --prefix=/../../..

必须安装在指定目录下,设置环境,如果没有安装在指定目录下,那么后续的WPS安装根本无法成功

2.PGI安装

cd /../../pgi

./install

出现pgf90-warning-No files to process则成功

3.zlib-1.2.3 libpng1.2 jasper-1.900.1安装

tar zxvf /../../..

cd /../../..

./configure

 make && make install

如果安装libpng出现下述情况:

checking whether to enable maintainer-specific portions of Makefile ... no
checking for gcc ... /use/bin/gcc
checking whether the C compiler works .... no
configure:error:in '/usr/local/wrf/libpng-1.2.50'
configure:error:C compiler cannot create executables(翻译:C编译器无法创建可执行文件)
解决方法:sudo ./configure
make && make install
/usr/local/lib/libz.a:error adding symbols:Bad valude
collect2:error:ld returned 1 exit status
make[1]:***[libpng12.la] 错误1
make:***[all] 错误2
解决方法:进入zlib目录下,make clean
sudo CFLAGS="-o3 -fPIC" ./configure
make && make install
再进入libpng目录下sudo ./configure  ....成功
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Linux  WRF 安装