爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 7517|回复: 4

ARWpost3.1安装失败,求帮助

[复制链接]

新浪微博达人勋

发表于 2017-11-11 21:29:05 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 bilibili 于 2017-11-12 20:20 编辑

错误提示:
module_calc_wdir.o module_calc_wspd.o module_calc_clfr.o  \
-L/usr/local/NETCDF/lib -lnetcdf -lnetcdff -I/usr/local/NETCDF/include  -lnetcdf
input_module.o: In function `__input_module_MOD_read_next_field':
input_module.f:(.text+0x122c): undefined reference to `ncvgt_'
input_module.f:(.text+0x145d): undefined reference to `ncvgt_'
input_module.f:(.text+0x1832): undefined reference to `ncvgt_'
input_module.f:(.text+0x19f9): undefined reference to `ncvgt_'
module_interp.o: In function `__module_interp_MOD_get_keep_array':
module_interp.f:(.text+0x9b3): undefined reference to `ncvgt_'
module_interp.o:module_interp.f:(.text+0xc45): more undefined references to `ncvgt_' follow
collect2: error: ld returned 1 exit status
Makefile:18: recipe for target 'ARWpost.exe' failed
make: [ARWpost.exe] Error 1 (ignored)

已经成功安装了WRF和WPS应该不是netcdf的问题
FFLAGS   =  -ffree-form -cpp -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4
F77FLAGS  =  -ffixed-form -cpp -O -fno-second-underscore -fconvert=big-endian

if ( $sw_netcdf_path )
      { $_ =~ s:CONFIGURE_NETCDF_FLAG:-DNETCDF: ;
$_ =~ s:CONFIGURE_NETCDF_LIB_PATH:-L$sw_netcdf_path/lib -lnetcdff -lnetcdf(-lhdf5_hl -lhdf5 -lz): ;


ARWpost.exe: $(OBJS)
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $(OBJS)  \
  -L$(NETCDF)/lib -lnetcdf -lnetcdff -I$(NETCDF)/include  -lnetcdf

也都修改过了,实在不知道该怎么办了,求大神指教
PS 32位系统  nercdf4.3.3.1 netcdf fortran4.4.2

------------------------------------------------------------------------------------------------------------
改装2.2成功了



密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-11-11 22:13:22 | 显示全部楼层
{:eb302:}{:eb302:}{:eb302:}
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 成长值: 0
发表于 2017-11-12 05:00:49 | 显示全部楼层
用的是什么编译器?gfortran么
最好保持和wrf一样的编译器

试试这个:
打开configure.arwp
CPP这行改成:
CPP=/lib/cpp -P -traditional

然后在 /src/Makefile 下更改
-L$(NETCDF)/lib -lnetcdf -lnetcdff -I$(NETCDF)/include  -lnetcdf

密码修改失败请联系微信:mofangbao

新浪微博达人勋

 成长值: 0
发表于 2017-11-12 05:17:19 | 显示全部楼层
其他保持不变,把之前的给clean掉
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-11-12 20:19:35 | 显示全部楼层
tbag 发表于 2017-11-12 05:00
用的是什么编译器?gfortran么
最好保持和wrf一样的编译器

是gfortran,这些都改过了,还是不行,后来放弃3.1装的2.2装成功了
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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