爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10930|回复: 12

WPS编译后无法生成ungrib.exe

[复制链接]
发表于 2017-7-28 19:21:19 | 显示全部楼层 |阅读模式

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

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

x
请问各位大神,我编译到WPS這一步后一直不出現ungrib,部分log文件如下,麻煩大家帮我看看,非常感谢!

Error: NAMELIST attribute conflicts with ALLOCATABLE attribute in 'new_plvl' at (1)
read_namelist.f90:238.20:

  read(10,NML=ungrib,END=100)
                    1
Error: Symbol 'ungrib' at (1) must be a NAMELIST group name
make[1]: [read_namelist.o] Error 1 (ignored)
/bin/rm -f cio.o
gcc -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL  -D_UNGRIB  -c cio.c
/bin/rm -f libpgu.a
ar ru libpgu.a build_hdate.o geth_newdate.o geth_idts.o swap.o table.o parse_table.o gbytesys.o gribcode.o read_namelist.o cio.o
ar: creating libpgu.a
ar: read_namelist.o: No such file or directory
make[1]: [libpgu.a] Error 1 (ignored)
ranlib  libpgu.a
ranlib: 'libpgu.a': No such file
make[1]: [libpgu.a] Error 1 (ignored)
/bin/rm -f ungrib.exe
if [ -z  ] ; then \
                          gfortran -o ungrib.exe  misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o  \
                                -L./ngl -lw3 -lg2_4 \
                                -L/disk02/hg-ws/wrf/LIBRARIES/grib2/lib -ljasper -lpng -lz \
                                -L. -lpgu ; \
                        else \
                          gfortran -o ungrib.exe  misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o  \
-L./ngl -lw3 -lg2_4 \
                                -L/disk02/hg-ws/wrf/LIBRARIES/grib2/lib -ljasper -lpng -lz \
                                -L. -lpgu ; \
                        else \
                          gfortran -o ungrib.exe  misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o  \
                                ./ngl/w3/libw3.a ./ngl/g2/libg2_4.a \
                                -L/disk02/hg-ws/wrf/LIBRARIES/grib2/lib -ljasper -lpng -lz \
                                libpgu.a ; \
                        fi
/usr/bin/ld: cannot find -lpgu
collect2: ld returned 1 exit status
make[1]: [ungrib.exe] Error 1 (ignored)
make[1]: Leaving directory `/disk02/hg-ws/wrf/WPS/ungrib/src'
if [ -h ungrib.exe ] ; then \
                /bin/rm -f ungrib.exe ; \
        fi ; \
        if [ -h ../ungrib.exe ] ; then \
   /bin/rm -f ../ungrib.exe ; \
        fi ; \
        if [ -e src/ungrib.exe ] ; then \
                ln -sf src/ungrib.exe . ; \
        fi
make[1]: Entering directory `/disk02/hg-ws/wrf/WPS/metgrid/src'
/bin/rm -f cio.o


密码修改失败请联系微信:mofangbao
发表于 2017-12-28 15:16:18 | 显示全部楼层
帅气小葛 发表于 2017-9-8 22:24
楼主问题解决了吗?我今天安装也遇到了同样的问题,报错和你一样,也是
Error: NAMELIST attribute confli ...

可能是编译器版本过低造成的
http://www2.mmm.ucar.edu/wrf/users/wpsv3.9/known-prob-3.9.html
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

发表于 2017-7-28 19:43:28 | 显示全部楼层
看样子是缺少pgu的lib文件链接,然后根据提示应该是grib2的库没弄好,去论坛里找找关于grib2的库安装的帖子吧
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2017-7-29 09:27:06 | 显示全部楼层
j211053 发表于 2017-7-28 19:43
看样子是缺少pgu的lib文件链接,然后根据提示应该是grib2的库没弄好,去论坛里找找关于grib2的库安装的帖子 ...

您好,我刚刚重装了一遍zlib,但是还是同样的错误。。
密码修改失败请联系微信:mofangbao
发表于 2017-7-30 10:28:59 | 显示全部楼层
sususue 发表于 2017-7-29 09:27
您好,我刚刚重装了一遍zlib,但是还是同样的错误。。

grib2的文件我记得是要把zlib,libpng一起放到jasper下面的
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2017-8-4 15:22:33 | 显示全部楼层
j211053 发表于 2017-7-30 10:28
grib2的文件我记得是要把zlib,libpng一起放到jasper下面的

是的。。我是这样子做的
密码修改失败请联系微信:mofangbao
发表于 2017-8-4 15:41:04 | 显示全部楼层
什么版本的WPS呢
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2017-8-5 14:49:04 | 显示全部楼层

3.9的,听说是GRIB2没装好,请问我如果重新安装 的话,是直接删掉RIB2文件夹,然后重新解压么?
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2017-8-5 14:50:12 | 显示全部楼层
j211053 发表于 2017-7-28 19:43
看样子是缺少pgu的lib文件链接,然后根据提示应该是grib2的库没弄好,去论坛里找找关于grib2的库安装的帖子 ...

请问我重新安装的话是rm -rf删掉文件夹,然后重新解压就行么?在家园里没找到类似问题
密码修改失败请联系微信:mofangbao
发表于 2017-8-5 14:53:10 | 显示全部楼层
sususue 发表于 2017-8-5 14:49
3.9的,听说是GRIB2没装好,请问我如果重新安装 的话,是直接删掉RIB2文件夹,然后重新解压么?

应该可以吧,记得环境文件要设置好。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2017-8-5 15:15:01 | 显示全部楼层
arthurmaple 发表于 2017-8-5 14:53
应该可以吧,记得环境文件要设置好。

好的感谢!!
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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