爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 32023|回复: 49

安装ARWpost无法生成ARWpost.exe

[复制链接]
发表于 2013-6-4 19:40:55 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
     因为导师要求学习WRF,这两天一直在自己的电脑上安装WRF,一路安装下来都挺顺利,正窃喜呢,问题就来了。由于习惯用GRADS画图,所以需要安装ARWpost转换出来的结果数据,但是在安装的时候一直不成功!请各位有相关经验的前辈能不吝赐教!
    这是编译过程:

[chan@localhost ARWpost]$ ./configure
Will use NETCDF in dir: /usr/local/netcdf
------------------------------------------------------------------------
Please select from among the following supported platforms.

   1.  PC Linux i486 i586 i686 x86_64, PGI compiler   
   2.  PC Linux i486 i586 i686 x86_64, Intel compiler   
   3.  PC Linux i486 i586 i686 x86_64, gfortran compiler

Enter selection [1-3] : 1
------------------------------------------------------------------------
Configuration successful. To build the ARWpost, type: compile
------------------------------------------------------------------------
[chan@localhost ARWpost]$ ./compile

**** Compiling ARWpost ****

pgf90 -Mfree -byteswapio -O  -o ARWpost.exe module_model_basics.o constants_module.o gridinfo_module.o ARWpost.o input_module.o output_module.o module_map_utils.o misc_definitions_module.o module_date_pack.o module_debug.o process_domain_module.o module_get_file_names.o module_interp.o module_basic_arrays.o module_diagnostics.o module_arrays.o module_pressure.o module_calc_height.o module_calc_pressure.o module_calc_theta.o module_calc_tk.o module_calc_tc.o module_calc_td.o module_calc_td2.o module_calc_rh.o module_calc_rh2.o module_calc_uvmet.o module_calc_slp.o module_calc_dbz.o module_calc_cape.o module_calc_wdir.o module_calc_wspd.o module_calc_clfr.o  \
        -L/usr/local/netcdf/lib -I/usr/local/netcdf/include  -lnetcdf
input_module.o: In function `input_module_input_init_':
/home/chan/wrf/ARWpost/src/./input_module.f:31: undefined reference to `nf_open_'
/home/chan/wrf/ARWpost/src/./input_module.f:40: undefined reference to `nf_inq_'
/home/chan/wrf/ARWpost/src/./input_module.f:45: undefined reference to `nf_inq_dim_'
input_module.o: In function `input_module_read_next_field_':
/home/chan/wrf/ARWpost/src/./input_module.f:81: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./input_module.f:105: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./input_module.f:107: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./input_module.f:115: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./input_module.f:120: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./input_module.f:129: undefined reference to `nf_get_att_text_'
/home/chan/wrf/ARWpost/src/./input_module.f:129: undefined reference to `nf_get_att_text_'
/home/chan/wrf/ARWpost/src/./input_module.f:134: undefined reference to `nf_get_att_text_'
/home/chan/wrf/ARWpost/src/./input_module.f:134: undefined reference to `nf_get_att_text_'
input_module.o: In function `input_module_read_global_attrs_':
/home/chan/wrf/ARWpost/src/./input_module.f:182: undefined reference to `nf_get_att_text_'
/home/chan/wrf/ARWpost/src/./input_module.f:200: undefined reference to `nf_get_att_int_'
/home/chan/wrf/ARWpost/src/./input_module.f:200: undefined reference to `nf_get_att_int_'
/home/chan/wrf/ARWpost/src/./input_module.f:200: undefined reference to `nf_get_att_int_'
/home/chan/wrf/ARWpost/src/./input_module.f:209: undefined reference to `nf_get_att_text_'
/home/chan/wrf/ARWpost/src/./input_module.f:209: undefined reference to `nf_get_att_int_'
/home/chan/wrf/ARWpost/src/./input_module.f:209: undefined reference to `nf_get_att_real_'
/home/chan/wrf/ARWpost/src/./input_module.f:209: undefined reference to `nf_get_att_real_'
/home/chan/wrf/ARWpost/src/./input_module.f:209: undefined reference to `nf_get_att_real_'
/home/chan/wrf/ARWpost/src/./input_module.f:209: undefined reference to `nf_get_att_real_'
/home/chan/wrf/ARWpost/src/./input_module.f:209: undefined reference to `nf_get_att_real_'
input_module.o:/home/chan/wrf/ARWpost/src/./input_module.f:209: more undefined references to `nf_get_att_real_' follow
input_module.o: In function `input_module_read_global_attrs_':
/home/chan/wrf/ARWpost/src/./input_module.f:236: undefined reference to `nf_inq_attname_'
/home/chan/wrf/ARWpost/src/./input_module.f:236: undefined reference to `nf_inq_att_'
/home/chan/wrf/ARWpost/src/./input_module.f:240: undefined reference to `nf_get_att_text_'
/home/chan/wrf/ARWpost/src/./input_module.f:245: undefined reference to `nf_get_att_int_'
/home/chan/wrf/ARWpost/src/./input_module.f:249: undefined reference to `nf_get_att_real_'
input_module.o: In function `input_module_input_close_':
/home/chan/wrf/ARWpost/src/./input_module.f:268: undefined reference to `nf_close_'
input_module.o: In function `input_module_arw_get_next_time_':
/home/chan/wrf/ARWpost/src/./input_module.f:289: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./input_module.f:289: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./input_module.f:296: undefined reference to `nf_get_vara_text_'
module_interp.o: In function `module_interp_get_interp_info_':
/home/chan/wrf/ARWpost/src/./module_interp.f:391: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:391: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:399: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:399: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:399: undefined reference to `nf_inq_varid_'
module_interp.o:/home/chan/wrf/ARWpost/src/./module_interp.f:399: more undefined references to `nf_inq_varid_' follow
module_interp.o: In function `module_interp_get_interp_info_':
/home/chan/wrf/ARWpost/src/./module_interp.f:450: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:461: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:463: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:463: undefined reference to `ncvgt_'
module_interp.o: In function `module_interp_get_interp_array_':
/home/chan/wrf/ARWpost/src/./module_interp.f:533: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:533: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:542: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:542: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:554: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:559: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:559: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:571: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:571: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:571: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:571: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:571: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:584: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:589: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:589: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:589: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:596: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:596: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:596: undefined reference to `nf_get_var_real_'
/home/chan/wrf/ARWpost/src/./module_interp.f:608: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:608: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:618: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:619: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:619: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:648: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:648: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:659: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:660: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:660: undefined reference to `ncvgt_'
module_interp.o: In function `module_interp_get_keep_array_':
/home/chan/wrf/ARWpost/src/./module_interp.f:706: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:709: undefined reference to `nf_inq_varid_'
/home/chan/wrf/ARWpost/src/./module_interp.f:718: undefined reference to `nf_inq_var_'
/home/chan/wrf/ARWpost/src/./module_interp.f:731: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:734: undefined reference to `ncvgt_'
/home/chan/wrf/ARWpost/src/./module_interp.f:740: undefined reference to `ncvgt_'
make: [ARWpost.exe] 错误 2 (忽略)


也在论坛里看过相关的帖子,也成功重装了netcdf,还是同样的问题。看到有的教程上写的“如果你的 WRF 目录路径不是在"../WRFV3" ,则要编辑configure.arwp,文件,设置“WRF_DIR“变量为你的WRFV3 路径”,不知道和这个有关吗?谢谢各位!

密码修改失败请联系微信:mofangbao
发表于 2013-10-1 20:57:57 | 显示全部楼层

这种情况除了修改/arch下面的Config.pl,还需修改/src里面的makefile  
将/arch/config.pl 中的-lnetcdf 替换为-lnetcdff -lnetcdf(-lhdf5_hl -lhdf5 –lz)
将/arch/ preamble 中的-lnetcdf 替换为-lnetcdff -lnetcdf
将/src 中的makefile的-lnetcdf 替换为-lnetcdff -lnetcdf

评分

参与人数 1金钱 +1 收起 理由
astiny + 1 很给力!

查看全部评分

密码修改失败请联系微信:mofangbao
回复 支持 4 反对 0

使用道具 举报

发表于 2015-11-19 19:06:50 | 显示全部楼层
装的是4.1.3版本的netcdf,安装后处理时遇到了同样的问题,问了同学终于解决了可以后处理,只需./configure后,将src/Makefile里的 -lnetcdf 修改为 -lnetcdff  -lnetcdf后./compile即可生成ARWpost.exe
密码修改失败请联系微信:mofangbao
回复 支持 2 反对 0

使用道具 举报

发表于 2013-10-1 22:03:57 | 显示全部楼层
黑马骑士 发表于 2013-10-1 21:40
我的/arch/ preamble 中的-lnetcd为什么没有?

RIP4有,ARWpost好像没有

评分

参与人数 1金钱 +1 收起 理由
astiny + 1 比较给力!

查看全部评分

密码修改失败请联系微信:mofangbao
回复 支持 2 反对 0

使用道具 举报

发表于 2013-6-4 22:07:08 | 显示全部楼层
楼主在的wrf的路径是/home/chan/wrf/WRFV3吗?
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-6-4 22:16:53 | 显示全部楼层
liutaoz21 发表于 2013-6-4 22:07
楼主在的wrf的路径是/home/chan/wrf/WRFV3吗?

对,就是这个路径。不知道是不是和WRFV3路径有关系,刚刚接触WRF很多都不懂。
密码修改失败请联系微信:mofangbao
发表于 2013-6-5 08:51:28 | 显示全部楼层
应该是netcdf的问题,估计是netcdf没装好或者netcdf编译器和wrf的编译器不是一个
密码修改失败请联系微信:mofangbao
发表于 2013-6-5 11:27:10 | 显示全部楼层
学习来了,以前也想在自己的电脑上装,没成功。。。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-6-5 11:42:08 | 显示全部楼层
xo2001 发表于 2013-6-5 08:51
应该是netcdf的问题,估计是netcdf没装好或者netcdf编译器和wrf的编译器不是一个

谢谢xo2001的帮助,之前自己也找过相关问题的帖子,试着重装了netcdf应该是安装成功了,并且电脑上已经成功运行RegCM区域气候模式,都没有问题。在装ARWpost的时候也核对了netcdf的路径没有问题。
     电脑上自己只安装了PGI编译器,WRF安装过程中我也选择的是PGI的编译环境。
     至于您提出的这些可能的问题,有没有什么办法测试一下?到目前为止,我还没有实际运行过前期装好的WRF,如果我试着实际转一下WRF没有问题,那是否表明我的netcdf,WRF都没有问题?
密码修改失败请联系微信:mofangbao
发表于 2013-6-5 12:05:58 | 显示全部楼层
nf开头的错误基本都是netcdf,我提出的这些问题,你可以自己写一个f90程序,里面包含部分调用netcdf函数的命令,如果真的运行成功,那就没有错。
不过看你这样说,那是否是编译ARWpost的时候需要调用到wrf的部分程序,如果不在指定目录可能导致调用不了,导致出错?你要不试着移动下文件夹?我当初是放在一个文件夹下面的,所有不太清楚是不是有这么个说法
密码修改失败请联系微信:mofangbao
发表于 2013-6-6 11:28:24 | 显示全部楼层
lz,楼上说的你可以想一下。可能跟netcdf或者ARWpost的版本问题。。
密码修改失败请联系微信:mofangbao
发表于 2013-6-7 22:54:49 | 显示全部楼层
哈妮象 发表于 2013-6-6 11:28
lz,楼上说的你可以想一下。可能跟netcdf或者ARWpost的版本问题。。

推荐ARW2.2 和netcef4.0.1 很好用,很稳定
密码修改失败请联系微信:mofangbao
发表于 2013-6-10 11:35:50 | 显示全部楼层
Rplay 发表于 2013-6-7 22:54
推荐ARW2.2 和netcef4.0.1 很好用,很稳定

恩,对,我也是用的这两个版本。。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表