爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 8331|回复: 7

【已解决】求助:WRF安装compile的问题

[复制链接]

新浪微博达人勋

发表于 2012-8-12 15:46:07 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 哈妮象 于 2012-8-20 20:00 编辑

各位大侠,我之前编译WRF成功过几次,但是都没有出现过这次这些麻烦。。郁闷死了~
这一次我的是XP和Ubuntu12.04 x86_64双系统, netcdf-4.1.3版本,编译器为 gfortran。其他都安装正常。
下面有两个问题想再次请教大家:
1、./configure时,并没有出现下面这个图示(此图引自@随缘 {:soso_e121:}),就是没有进行探测C、Fortran编译器和测试NETCDF。

                               
登录/注册后可看大图


2、在无视上述问题,继续./compile em_real>& wrfcompile.log后,我的wrfcompile.log的Error部分粘贴如下:
make[3]: Entering directory `/home/qiulin89/model/WRFV3/external/io_netcdf'
grep nf_format_64bit /usr/local/wrf/netcdf/netcdf-4.1.3/include/netcdf.inc ;\
                        a=$? ; export a ; \
   if [ $a -a "$WRFIO_NCD_LARGE_FILE_SUPPORT" = "1" ] ; then \
                          /lib/cpp -C -P -C -P -traditional -DWRFIO_NCD_LARGE_FILE_SUPPORT -I../ioapi_share wrf_io.F90 | m4 -Uinclude -Uindex -Ulen - > wrf_io.f ; \
                        else \
                          /lib/cpp -C -P -C -P -traditional -I../ioapi_share wrf_io.F90 | m4 -Uinclude -Uindex -Ulen - > wrf_io.f ; \
                        fi
gfortran  -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -o wrf_io.o  -I/usr/local/wrf/netcdf/netcdf-4.1.3/include -I../ioapi_share -c wrf_io.f
wrf_io.f:1758.59:
  stat = NF_CREATE(FileName, IOR(NF_CLOBBER,NF_64BIT_OFFSET), DH%NCID)
                                                           1
Error: Symbol 'nf_64bit_offset' at (1) has no IMPLICIT type
make[3]: [wrf_io.o] Error 1 (ignored)
/lib/cpp -C -P -C -P -traditional -I../ioapi_share field_routines.F90 > field_routines.f
gfortran  -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -o field_routines.o  -I/usr/local/wrf/netcdf/netcdf-4.1.3/include -I../ioapi_share -c field_routines.f
/lib/cpp -C -P -C -P -traditional -I../ioapi_share module_wrfsi_static.F90 > module_wrfsi_static.f
gfortran  -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -o module_wrfsi_static.o  -I/usr/local/wrf/netcdf/netcdf-4.1.3/include -I../ioapi_share -c module_wrfsi_static.f
/bin/rm -f libwrfio_nf.a
if [ "ar" != "lib.exe" ] ; then \
                          ar cr libwrfio_nf.a wrf_io.o field_routines.o module_wrfsi_static.o ; \
                        else \
                          ar /out:libwrfio_nf.a wrf_io.o field_routines.o module_wrfsi_static.o ; \
                        fi
ar: wrf_io.o: No such file or directory
make[3]: [libwrfio_nf.a] Error 1 (ignored)
ranlib libwrfio_nf.a
ranlib: 'libwrfio_nf.a': No such file
make[3]: [libwrfio_nf.a] Error 1 (ignored)
----------------------------------------------------------------------------------------------------------------
不知道问题有没有贴的清楚。。{:soso_e101:}请问一下问题出在哪里呢?谢谢额~


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

新浪微博达人勋

发表于 2012-8-13 04:48:13 | 显示全部楼层

回帖奖励 +1 金钱

没有出现截图的那种内容可能是因为你选择的选项不匹配。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 成长值: 19710
发表于 2012-8-13 08:50:51 | 显示全部楼层

回帖奖励 +1 金钱

你用低一点版本的netcdf试试
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2012-8-14 12:11:39 | 显示全部楼层
abd 发表于 2012-8-13 04:48
没有出现截图的那种内容可能是因为你选择的选项不匹配。

这个应该不会选错的,Gfortran 编译器,64位,serial,nesting...............
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2012-8-14 12:12:56 | 显示全部楼层
兰溪之水 发表于 2012-8-13 08:50
你用低一点版本的netcdf试试

我之前安装两次都是用的4.1.3版本,不清楚呢Error: Symbol 'nf_64bit_offset' at (1) has no IMPLICIT type
,这个我没看明白的。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2012-8-14 14:07:10 | 显示全部楼层
哈妮象 发表于 2012-8-14 12:11
这个应该不会选错的,Gfortran 编译器,64位,serial,nesting...............

你确定不是选项的问题?那么netcdf和gfortran都测试过了吗?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2012-8-14 18:55:15 | 显示全部楼层
本帖最后由 哈妮象 于 2012-8-14 22:07 编辑
abd 发表于 2012-8-14 14:07
你确定不是选项的问题?那么netcdf和gfortran都测试过了吗?
----------------------------------------------------------------------------------------------------------------------

验证都OK。。。果然是netcdf版本问题,不过之前我安装两次都没问题的。。。谢谢乃们~

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

新浪微博达人勋

 楼主| 发表于 2012-8-14 22:36:09 | 显示全部楼层
兰溪之水 发表于 2012-8-13 08:50
你用低一点版本的netcdf试试

是版本问题,谢谢啦
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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