爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10894|回复: 11

WPS编译不出现三个EXE文件的问题

[复制链接]
发表于 2019-7-30 22:30:05 | 显示全部楼层 |阅读模式

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

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

x
1.png
我按照官网教程走到最后一步wps编译,但是在输入./compile >^log.compile后,好像没有任何反应,哪怕出了错或者有错误提示也好,请问这是什么情况。PS:编程0基础太伤了,之前很多错误就是环境变量没设置好导致的,现在不懂的太多了,网上也差不到类似情况,请大家多多帮助。
密码修改失败请联系微信:mofangbao
发表于 2019-7-31 09:02:49 | 显示全部楼层
三个exe没有出来,错误就在log.compile里面
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-7-31 09:08:37 | 显示全部楼层
./configure的时候,看看你电脑配置,是64位还是32位,具体啥编译器,要选对应的选项才行

估计是这一步选择的不对
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-7-31 09:25:55 | 显示全部楼层
./compile >& log.compile 就是将compile这个过程记录到log.compile 打开这个文件会看到报错信息,你先看看这个里面是什么原因
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-7-31 19:34:51 | 显示全部楼层
水阁云间 发表于 2019-7-31 09:02
三个exe没有出来,错误就在log.compile里面

log.compile这个文件怎么找,他的错误怎么查询,有没有办法?谢谢!
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-7-31 20:26:15 | 显示全部楼层
jljyyh 发表于 2019-7-31 09:25
./compile >& log.compile 就是将compile这个过程记录到log.compile 打开这个文件会看到报错信息,你先看看 ...

额,这个怎么打开,百度上也查不到,小白很懵逼。。。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-7-31 21:17:35 | 显示全部楼层
本帖最后由 benbenhepipi 于 2019-7-31 21:29 编辑
水阁云间 发表于 2019-7-31 09:02
三个exe没有出来,错误就在log.compile里面

您好,我找到了log.compile,也找到了问题,是这样的情况:

make[1]: 进入目录“/home/hxm/WRFworking/Build_WRF/WPS/geogrid/src”
/bin/rm -f constants_module.o constants_module.mod
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include constants_module.F > constants_module.f90
mpif90 -f90=gfortran  -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c constants_module.f90 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include
gfortran: error: unrecognized command line option ‘-f90=gfortran’
../../configure.wps:112: recipe for target 'constants_module.o' failed


您可以看到,由于gfortran: error: unrecognized command line option ‘-f90=gfortran’这个错误,导致 'constants_module.o' 没有生成,接下来是这样的:
make[1]: [constants_module.o] Error 1 (已忽略)
/bin/rm -f misc_definitions_module.o misc_definitions_module.mod
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include misc_definitions_module.F > misc_definitions_module.f90
mpif90 -f90=gfortran  -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c misc_definitions_module.f90 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include
gfortran: error: unrecognized command line option ‘-f90=gfortran’
../../configure.wps:112: recipe for target 'misc_definitions_module.o' failed

一方面,上一步constants_module.o' 生成失败,导致make[1]: [constants_module.o] Error 1 (已忽略),同时,这个make过程中,再次出现了gfortran: error: unrecognized command line option ‘-f90=gfortran’,导致接下来十几个文件的生成都像这两个文件一样的失败了,到了最后exe生成时(我用geogrid.exe举例),就产生了这个结果:
gfortran: error: wrf_debug.o: 没有那个文件或目录
gfortran: error: bitarray_module.o: 没有那个文件或目录
gfortran: error: constants_module.o: 没有那个文件或目录
gfortran: error: module_stringutil.o: 没有那个文件或目录
gfortran: error: geogrid.o: 没有那个文件或目录
gfortran: error: gridinfo_module.o: 没有那个文件或目录
gfortran: error: hash_module.o: 没有那个文件或目录
gfortran: error: interp_module.o: 没有那个文件或目录
gfortran: error: list_module.o: 没有那个文件或目录
gfortran: error: llxy_module.o: 没有那个文件或目录
gfortran: error: misc_definitions_module.o: 没有那个文件或目录
gfortran: error: module_debug.o: 没有那个文件或目录
gfortran: error: module_map_utils.o: 没有那个文件或目录
gfortran: error: output_module.o: 没有那个文件或目录
gfortran: error: parallel_module.o: 没有那个文件或目录
gfortran: error: process_tile_module.o: 没有那个文件或目录
gfortran: error: proc_point_module.o: 没有那个文件或目录
gfortran: error: queue_module.o: 没有那个文件或目录
gfortran: error: smooth_module.o: 没有那个文件或目录
gfortran: error: source_data_module.o: 没有那个文件或目录
gfortran: error: unrecognized command line option ‘-f90=gfortran’
Makefile:13: recipe for target 'geogrid.exe' failed

我自己的分析是这样的,根本错误是gfortran: error: unrecognized command line option ‘-f90=gfortran’,这个error导致了每个文件都无法生成,同时也导致文件生成链断裂了,那些error1(已忽略)我认为就是文件生成链断裂产生的假错误,如果解决了根本错误,这些假错误自动就会消失,所以被忽略了。
所以麻烦您看下这到底是什么错误,网上搜不到解决方案。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-7-31 21:21:36 | 显示全部楼层
小其其格 发表于 2019-7-31 09:08
./configure的时候,看看你电脑配置,是64位还是32位,具体啥编译器,要选对应的选项才行

估计是这一步 ...

还不是这个原因,我在log.conmpile中查询了是这样的:
make[1]: 进入目录“/home/hxm/WRFworking/Build_WRF/WPS/geogrid/src”
/bin/rm -f constants_module.o constants_module.mod
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include constants_module.F > constants_module.f90
mpif90 -f90=gfortran  -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c constants_module.f90 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include
gfortran: error: unrecognized command line option ‘-f90=gfortran’
../../configure.wps:112: recipe for target 'constants_module.o' failed
您可以看到,由于gfortran: error: unrecognized command line option ‘-f90=gfortran’这个错误,导致 'constants_module.o' 没有生成,接下来是这样的:
make[1]: [constants_module.o] Error 1 (已忽略)
/bin/rm -f misc_definitions_module.o misc_definitions_module.mod
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include misc_definitions_module.F > misc_definitions_module.f90
mpif90 -f90=gfortran  -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c misc_definitions_module.f90 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include
gfortran: error: unrecognized command line option ‘-f90=gfortran’
../../configure.wps:112: recipe for target 'misc_definitions_module.o' failed

一方面,上一步constants_module.o' 生成失败,导致make[1]: [constants_module.o] Error 1 (已忽略),同时,这个make过程中,再次出现了gfortran: error: unrecognized command line option ‘-f90=gfortran’,导致接下来十几个文件的生成都像这两个文件一样的失败了,到了最后exe生成时(我用geogrid.exe举例),就产生了这个结果:
gfortran: error: wrf_debug.o: 没有那个文件或目录
gfortran: error: bitarray_module.o: 没有那个文件或目录
gfortran: error: constants_module.o: 没有那个文件或目录
gfortran: error: module_stringutil.o: 没有那个文件或目录
gfortran: error: geogrid.o: 没有那个文件或目录
gfortran: error: gridinfo_module.o: 没有那个文件或目录
gfortran: error: hash_module.o: 没有那个文件或目录
gfortran: error: interp_module.o: 没有那个文件或目录
gfortran: error: list_module.o: 没有那个文件或目录
gfortran: error: llxy_module.o: 没有那个文件或目录
gfortran: error: misc_definitions_module.o: 没有那个文件或目录
gfortran: error: module_debug.o: 没有那个文件或目录
gfortran: error: module_map_utils.o: 没有那个文件或目录
gfortran: error: output_module.o: 没有那个文件或目录
gfortran: error: parallel_module.o: 没有那个文件或目录
gfortran: error: process_tile_module.o: 没有那个文件或目录
gfortran: error: proc_point_module.o: 没有那个文件或目录
gfortran: error: queue_module.o: 没有那个文件或目录
gfortran: error: smooth_module.o: 没有那个文件或目录
gfortran: error: source_data_module.o: 没有那个文件或目录
gfortran: error: unrecognized command line option ‘-f90=gfortran’
Makefile:13: recipe for target 'geogrid.exe' failed

我自己的分析是这样的,根本错误是gfortran: error: unrecognized command line option ‘-f90=gfortran’,这个error导致了每个文件都无法生成,同时也导致文件生成链断裂了,那些error1(已忽略)我认为就是文件生成链断裂产生的假错误,如果解决了根本错误,这些假错误自动就会消失,所以被忽略了。
所以麻烦您看下这到底是什么错误,网上搜不到解决方案。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-7-31 21:28:50 | 显示全部楼层
benbenhepipi 发表于 2019-7-31 20:26
额,这个怎么打开,百度上也查不到,小白很懵逼。。。

您好,我找到了log.compile,也找到了问题,是这样的情况:
make[1]: 进入目录“/home/hxm/WRFworking/Build_WRF/WPS/geogrid/src”
/bin/rm -f constants_module.o constants_module.mod
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include constants_module.F > constants_module.f90
mpif90 -f90=gfortran  -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c constants_module.f90 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include
gfortran: error: unrecognized command line option ‘-f90=gfortran’
../../configure.wps:112: recipe for target 'constants_module.o' failed


您可以看到,由于gfortran: error: unrecognized command line option ‘-f90=gfortran’这个错误,导致 'constants_module.o' 没有生成,接下来是这样的:
make[1]: [constants_module.o] Error 1 (已忽略)
/bin/rm -f misc_definitions_module.o misc_definitions_module.mod
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include misc_definitions_module.F > misc_definitions_module.f90
mpif90 -f90=gfortran  -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c misc_definitions_module.f90 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include
gfortran: error: unrecognized command line option ‘-f90=gfortran’
../../configure.wps:112: recipe for target 'misc_definitions_module.o' failed

一方面,上一步constants_module.o' 生成失败,导致make[1]: [constants_module.o] Error 1 (已忽略),同时,这个make过程中,再次出现了gfortran: error: unrecognized command line option ‘-f90=gfortran’,导致接下来十几个文件的生成都像这两个文件一样的失败了,到了最后exe生成时(我用geogrid.exe举例),就产生了这个结果:
gfortran: error: wrf_debug.o: 没有那个文件或目录
gfortran: error: bitarray_module.o: 没有那个文件或目录
gfortran: error: constants_module.o: 没有那个文件或目录
gfortran: error: module_stringutil.o: 没有那个文件或目录
gfortran: error: geogrid.o: 没有那个文件或目录
gfortran: error: gridinfo_module.o: 没有那个文件或目录
gfortran: error: hash_module.o: 没有那个文件或目录
gfortran: error: interp_module.o: 没有那个文件或目录
gfortran: error: list_module.o: 没有那个文件或目录
gfortran: error: llxy_module.o: 没有那个文件或目录
gfortran: error: misc_definitions_module.o: 没有那个文件或目录
gfortran: error: module_debug.o: 没有那个文件或目录
gfortran: error: module_map_utils.o: 没有那个文件或目录
gfortran: error: output_module.o: 没有那个文件或目录
gfortran: error: parallel_module.o: 没有那个文件或目录
gfortran: error: process_tile_module.o: 没有那个文件或目录
gfortran: error: proc_point_module.o: 没有那个文件或目录
gfortran: error: queue_module.o: 没有那个文件或目录
gfortran: error: smooth_module.o: 没有那个文件或目录
gfortran: error: source_data_module.o: 没有那个文件或目录
gfortran: error: unrecognized command line option ‘-f90=gfortran’
Makefile:13: recipe for target 'geogrid.exe' failed

我自己的分析是这样的,根本错误是gfortran: error: unrecognized command line option ‘-f90=gfortran’,这个error导致了每个文件都无法生成,同时也导致文件生成链断裂了,那些error1(已忽略)我认为就是文件生成链断裂产生的假错误,如果解决了根本错误,这些假错误自动就会消失,所以被忽略了。
所以麻烦您看下这到底是什么错误,网上搜不到解决方案。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-8-1 10:01:36 | 显示全部楼层
benbenhepipi 发表于 2019-7-31 21:17
您好,我找到了log.compile,也找到了问题,是这样的情况:
make[1]: 进入目录“/home/hxm/WRFworking/B ...

这个问题不知道会不会是./configure时你没有选对相应的gfortran。也有可能是可能需要的库你没装上 要是还是不行的话 建议你从头开始装 我当时安装wrfda时候也是类似的问题 完全没有解决
我参考的是这个帖子 http://bbs.06climate.com/forum.p ... &extra=page%3D2
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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