爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 13780|回复: 16

编译WPS未生成geogrid.exe和metgrid.exe文件

[复制链接]

新浪微博达人勋

发表于 2015-5-3 12:39:48 | 显示全部楼层 |阅读模式

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

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

x
我通过手册的命令./configure 和./compile安装了WPS,但是安装后没有出现geogrid.exe和metgrid.exe文件,只有ungrib.exe文件,哪位高手可以指导下。十分感谢!!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-5-16 01:00:15 | 显示全部楼层
我也是WRFV3装得sm,WPS装得se,也是WPS之出来了ungrid.exe,后来用下面的方法解决了,不知道对楼主有没有用
I had the same problem on Centos 6.4 (64 bit) with gcc+gfortran, with "smpar" option on WRF & "serial" option on WPS. The very simple solution is to add "-lgomp" to the WRF_LIB variable in file configure.wps (just append it after -lnetcdf).
As the latter is overwritten in case of re-configuration you may want to alter the arch/configure.defaults.
密码修改失败请联系微信:mofangbao
回复 支持 2 反对 0

使用道具 举报

新浪微博达人勋

发表于 2016-5-18 11:08:32 | 显示全部楼层
还有一个菜鸟级的解决办法,所有的安装解压文件都删除,重新解压安装,我这里可以解决编译WPS时选择serial,没有geogrid.exe和metgrid.exe的问题。大致错误原因,同上,未定义。
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

新浪微博达人勋

发表于 2015-12-31 15:38:24 | 显示全部楼层
fengxingzhe 发表于 2015-5-3 18:43
问题已解决,要将WPS和WRF 刚在同一目录下编译,最后还是谢谢!!

一般出现缺失那两个exe,是因为WRF的安装路径没有设置好。 在WPS的configure.wps中,WRF的默认路径是  ../WRFV3 ,最好自己设置,从根目录完整的敲下来有时候就能解决。 我现在遇到的问题是WPS选择serial时能够生成三个exe,但是WPS选择dmpar时,即使WRF的路径设置正确,也同样缺失两个exe,只生成一个exe。
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

新浪微博达人勋

发表于 2015-5-3 12:42:15 | 显示全部楼层
你连报错信息都不贴出来么?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-5-3 18:43:08 | 显示全部楼层
andrewsoong 发表于 2015-5-3 12:42
你连报错信息都不贴出来么?

问题已解决,要将WPS和WRF 刚在同一目录下编译,最后还是谢谢!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-5-3 21:18:46 | 显示全部楼层
fengxingzhe 发表于 2015-5-3 18:43
问题已解决,要将WPS和WRF 刚在同一目录下编译,最后还是谢谢!!

您好,我也是出现这个问题,请问一下你最后是怎么解决的吗?我看了一下,我的WPS和WRFV3都是在一个目录下的,但是我试了好几遍最后都还是只有unrgrib.exe产生
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-5-4 19:14:10 | 显示全部楼层
zlimin 发表于 2015-5-3 21:18
您好,我也是出现这个问题,请问一下你最后是怎么解决的吗?我看了一下,我的WPS和WRFV3都是在一个目录下 ...

你可以用./compile >**.txt看看它是怎么报错的,你也可以贴上来看看
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-8-25 13:52:10 | 显示全部楼层
evlom 发表于 2015-5-4 19:14
你可以用./compile >**.txt看看它是怎么报错的,你也可以贴上来看看

各位老师好,我遇到的问题是类似的,也是只出现了ungrib文件
以下是我的log文件,问题应该是symbol(s) not found for architecture x86_64 我不知道如何解决这个问题,谢谢大家
**** Compiling wps ****

gfortran  -o geogrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o module_stringutil.o geogrid.o gridinfo_module.o hash_module.o interp_module.o list_module.o llxy_module.o misc_definitions_module.o module_debug.o module_map_utils.o output_module.o parallel_module.o process_tile_module.o proc_point_module.o queue_module.o read_geogrid.o smooth_module.o source_data_module.o \
                /Users/HYF/WRF/WPS/../WRFV3/frame/module_driver_constants.o \
                /Users/HYF/WRF/WPS/../WRFV3/frame/pack_utils.o /Users/HYF/WRF/WPS/../WRFV3/frame/module_machine.o \
                /Users/HYF/WRF/WPS/../WRFV3/frame/module_internal_header_util.o \
                -I/Users/HYF/WRF/WPS/../WRFV3/external/io_netcdf -I/Users/HYF/WRF/WPS/../WRFV3/external/io_grib_share -I/Users/HYF/WRF/WPS/../WRFV3/external/io_grib1 -I/Users/HYF/WRF/WPS/../WRFV3/external/io_int -I/Users/HYF/WRF/WPS/../WRFV3/inc -I/usr/local/NETCDF//include \
                -L/Users/HYF/WRF/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/Users/HYF/WRF/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/Users/HYF/WRF/WPS/../WRFV3/external/io_int -lwrfio_int -L/Users/HYF/WRF/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/NETCDF//lib -lnetcdff -lnetcdf \
               
Undefined symbols for architecture x86_64:
  "_GOMP_loop_end_nowait", referenced from:
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.0 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.1 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.2 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.3 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.4 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.5 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.6 in libwrfio_nf.a(wrf_io.o)
      ...
  "_GOMP_loop_runtime_next", referenced from:
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.0 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.1 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.2 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.3 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.4 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.5 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.6 in libwrfio_nf.a(wrf_io.o)
      ...
  "_GOMP_loop_runtime_start", referenced from:
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.0 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.1 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.2 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.3 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.4 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.5 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.6 in libwrfio_nf.a(wrf_io.o)
      ...
  "_GOMP_parallel", referenced from:
      ___ext_ncd_support_routines_MOD_transpose in libwrfio_nf.a(wrf_io.o)
      _transposetor4_ in libwrfio_nf.a(wrf_io.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: [geogrid.exe] Error 1 (ignored)
( cd src/ngl ; make -i -r DEV_TOP="/Users/HYF/WRF/WPS" CC="gcc" FC="gfortran" RANLIB="ranlib" all )
make[1]: Nothing to be done for `all'.
( cd src ; \
        if [ "" = yes ] ; then \
          WRF_DIR2=../WRFV3 ; \
        else \
          WRF_DIR2=/Users/HYF/WRF/WPS/../WRFV3 ; \
        fi ; \
        make -i -r ungrib.exe \
                WRF_DIR="$WRF_DIR2" \
                FC="gfortran" \
                CC="gcc" \
                CPP="/usr/bin/cpp -P -traditional" \
                FFLAGS="-ffree-form -O -fconvert=big-endian -frecord-marker=4" \
                CFLAGS="" \
                LDFLAGS="" \
                CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DIO_NETCDF -DBIT32 -DMACOS  -D_UNGRIB" )
Makefile:90: warning: overriding commands for target `.F.o'
../../configure.wps:103: warning: ignoring old commands for target `.F.o'
Makefile:95: warning: overriding commands for target `.c.o'
../../configure.wps:95: warning: ignoring old commands for target `.c.o'
make[1]: `ungrib.exe' is up to date.
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
gfortran  -o metgrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o datatype_module.o module_stringutil.o gridinfo_module.o metgrid.o input_module.o interp_module.o interp_option_module.o list_module.o llxy_module.o met_data_module.o minheap_module.o misc_definitions_module.o module_date_pack.o module_debug.o module_map_utils.o module_mergesort.o output_module.o parallel_module.o process_domain_module.o queue_module.o read_met_module.o rotate_winds_module.o storage_module.o write_met_module.o \
                /Users/HYF/WRF/WPS/../WRFV3/frame/module_driver_constants.o \
                /Users/HYF/WRF/WPS/../WRFV3/frame/pack_utils.o /Users/HYF/WRF/WPS/../WRFV3/frame/module_machine.o \
                /Users/HYF/WRF/WPS/../WRFV3/frame/module_internal_header_util.o \
                -I/Users/HYF/WRF/WPS/../WRFV3/external/io_netcdf -I/Users/HYF/WRF/WPS/../WRFV3/external/io_grib_share -I/Users/HYF/WRF/WPS/../WRFV3/external/io_grib1 -I/Users/HYF/WRF/WPS/../WRFV3/external/io_int -I/Users/HYF/WRF/WPS/../WRFV3/inc -I/usr/local/NETCDF//include \
                -L/Users/HYF/WRF/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/Users/HYF/WRF/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/Users/HYF/WRF/WPS/../WRFV3/external/io_int -lwrfio_int -L/Users/HYF/WRF/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/NETCDF//lib -lnetcdff -lnetcdf \

Undefined symbols for architecture x86_64:
  "_GOMP_loop_end_nowait", referenced from:
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.0 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.1 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.2 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.3 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.4 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.5 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.6 in libwrfio_nf.a(wrf_io.o)
      ...
  "_GOMP_loop_runtime_next", referenced from:
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.0 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.1 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.2 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.3 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.4 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.5 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.6 in libwrfio_nf.a(wrf_io.o)
      ...
  "_GOMP_loop_runtime_start", referenced from:
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.0 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.1 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.2 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.3 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.4 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.5 in libwrfio_nf.a(wrf_io.o)
      ___ext_ncd_support_routines_MOD_transpose._omp_fn.6 in libwrfio_nf.a(wrf_io.o)
      ...
  "_GOMP_parallel", referenced from:
      ___ext_ncd_support_routines_MOD_transpose in libwrfio_nf.a(wrf_io.o)
      _transposetor4_ in libwrfio_nf.a(wrf_io.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: [metgrid.exe] Error 1 (ignored)


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

新浪微博达人勋

发表于 2015-10-9 08:46:15 | 显示全部楼层
zlimin 发表于 2015-5-3 21:18
您好,我也是出现这个问题,请问一下你最后是怎么解决的吗?我看了一下,我的WPS和WRFV3都是在一个目录下 ...

想问下你解决这个问题了么?我一直都是这样,没解决
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-1-20 22:48:33 | 显示全部楼层
我在Redhat 6.1 x86_64上装WRFV3.7.1,编译WPS时选择serial,也出现上述问题,没有geogrid.exe和metgrid.exe,没有修改confiugre.wps中WRF的路径,因为二者在同一目录下!出错原因大致是WRFV3/external/io_netcdf/./wrf_io.f中有很多undefined reference,请问是netcdf的原因吗,我装的netcdf4.1.3
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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