爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6942|回复: 7

WRF安装请教

[复制链接]

新浪微博达人勋

发表于 2017-2-18 17:43:16 | 显示全部楼层 |阅读模式

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

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

x
大神们好,我是中科大火灾国家重点实验室的学生,刚发现WRF这个软件,觉得可以应用到我的科研中,但是安装了几次都不成功,最后一次尝试的结果是在main中找不到.exe文件,在终端输入命令的结果是
j1@j1-System-Product-Name:/media/j1/72D82331D822F351/software/wrf-fire-master/WRFV3/test/em_fire/hill$ ./ideal.exe
bash: ./ideal.exe: 没有那个文件或目录
j1@j1-System-Product-Name:/media/j1/72D82331D822F351/software/wrf-fire-master/WRFV3/test/em_fire/hill$ ./wrf.exe
bash: ./wrf.exe: 没有那个文件或目录
我想向各位请教一下怎么安装这个软件,我的QQ是1436488928,非常感谢。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-2-18 19:51:19 | 显示全部楼层
wrf已经耦合了火模型WRF-FIRE。你还需自己编译安装这个才会有exe。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-2-18 20:48:47 | 显示全部楼层
andrewsoong 发表于 2017-2-18 19:51
wrf已经耦合了火模型WRF-FIRE。你还需自己编译安装这个才会有exe。

恩 是的,我按user guide安装的,
cd wrf-fire/WRFV3
./clean -a to delete the remains of any previous build and ensure start from a known state
./configure, choose nesting 1=basic.
./compile em_fire >& compile.log
可是就是报错,下面的只是一部分,求指导,谢谢
None of WRF_EM_CORE, WRF_NMM_CORE,
        specified in shell environment....
copying Registry/Registry.EM to Registry/Registry

Compiling: WRF_EM_CORE .

setting parallel make -j 2
make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/home/j1/ztftom/WRFV3/external/esmf_time_f90  -I/home/j1/ztftom/WRFV3/main -I/home/j1/ztftom/WRFV3/external/io_netcdf -I/home/j1/ztftom/WRFV3/external/io_int -I/home/j1/ztftom/WRFV3/frame -I/home/j1/ztftom/WRFV3/share -I/home/j1/ztftom/WRFV3/phys -I/home/j1/ztftom/WRFV3/chem -I/home/j1/ztftom/WRFV3/inc -I/home/ztftom/util/netcdf/include " ext
make[1]: Entering directory '/home/j1/ztftom/WRFV3'
--------------------------------------
( cd frame ; make -i -r externals )
make[2]: Entering directory '/home/j1/ztftom/WRFV3/frame'
( cd /home/j1/ztftom/WRFV3/external/ioapi_share ; \
          make -i -r NATIVE_RWORDSIZE="4" RWORDSIZE="4" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory '/home/j1/ztftom/WRFV3/external/ioapi_share'
( /bin/rm -f ../../inc/wrf_io_flags.h foo_io_flags.h; \
/bin/cp wrf_io_flags.h foo_io_flags.h; \
if [ 4 -ne 4 ] ; then \
  /bin/rm -f foo_io_flags.h; \
  sed -e 's/104/105/' wrf_io_flags.h > foo_io_flags.h ;\
fi ; \
/bin/mv foo_io_flags.h ../../inc/wrf_io_flags.h )
/bin/rm -f ../../inc/wrf_status_codes.h
/bin/cp wrf_status_codes.h ../../inc
make[3]: Leaving directory '/home/j1/ztftom/WRFV3/external/ioapi_share'
( cd /home/j1/ztftom/WRFV3/external/io_grib_share ; \
          make CC="gcc" CFLAGS="-w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25" RM="rm -f" RANLIB="ranlib" CPP="/lib/cpp -C -P" \
          FC="gfortran  -I.  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  " TRADFLAG="-traditional" AR="ar" ARFLAGS="ru" archive)
make[3]: Entering directory '/home/j1/ztftom/WRFV3/external/io_grib_share'
make[4]: Entering directory '/home/j1/ztftom/WRFV3/external/io_grib_share'
rm -f io_grib_share.o
/lib/cpp -C -P  -traditional  -I. io_grib_share.F > io_grib_share.f90
gfortran  -I.  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4     -I.     -c io_grib_share.f90
io_grib_share.f90:1:1:

/* Copyright (C) 1991-2016 Free Software Foundation, Inc.
1
Error: Invalid character in name at (1)
io_grib_share.f90:2:3:

    This file is part of the GNU C Library.
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:4:3:

    The GNU C Library is free software; you can redistribute it and/or
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:4:39:

    The GNU C Library is free software; you can redistribute it and/or
                                       1
Error: Unclassifiable statement at (1)
io_grib_share.f90:5:3:

    modify it under the terms of the GNU Lesser General Public
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:6:3:

    License as published by the Free Software Foundation; either
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:6:57:

    License as published by the Free Software Foundation; either
                                                         1
Error: Unclassifiable statement at (1)
io_grib_share.f90:7:3:

    version 2.1 of the License, or (at your option) any later version.
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:9:3:

    The GNU C Library is distributed in the hope that it will be useful,
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:10:3:

    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:10:29:

    but WITHOUT ANY WARRANTY; without even the implied warranty of
                             1
Error: Unclassifiable statement at (1)
io_grib_share.f90:11:3:

    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:12:3:

    Lesser General Public License for more details.
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:14:3:

    You should have received a copy of the GNU Lesser General Public
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:15:3:

    License along with the GNU C Library; if not, see
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:15:41:

    License along with the GNU C Library; if not, see
                                         1
Error: Unclassifiable statement at (1)
io_grib_share.f90:16:4:

    <http://www.gnu.org/licenses/>.  */
    1
Error: Invalid character in name at (1)
io_grib_share.f90:19:1:

/* This header is separate from features.h so that the compiler can
1
Error: Invalid character in name at (1)
io_grib_share.f90:20:3:

    include it implicitly at the start of every compilation.  It must
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:21:3:

    not itself include <features.h> or any other header that includes
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:22:4:

    <features.h> because the implicit include comes before any feature
    1
Error: Invalid character in name at (1)
io_grib_share.f90:23:3:

    test macros that may be defined in a source file before it first
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:24:3:

    explicitly includes a system header.  GCC knows the name of this
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:25:3:

    header in order to preinclude it.  */
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:27:1:

/* glibc's intent is to support the IEC 559 math functionality, real
1
Error: Invalid character in name at (1)
io_grib_share.f90:28:3:

    and complex.  If the GCC (4.9 and later) predefined macros
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:29:3:

    specifying compiler intent are available, use them to determine
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:30:3:

    whether the overall intent is to support these features; otherwise,
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:30:60:

    whether the overall intent is to support these features; otherwise,
                                                            1
Error: Unclassifiable statement at (1)
io_grib_share.f90:31:3:

    presume an older compiler has intent to support these features and
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:32:3:

    define these macros by default.  */
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:36:1:

/* wchar_t uses Unicode 8.0.0.  Version 8.0 of the Unicode Standard is
1
Error: Invalid character in name at (1)
io_grib_share.f90:37:3:

    synchronized with ISO/IEC 10646:2014, plus Amendment 1 (published
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:38:8:

    2015-05-15).  */
        1
Error: Non-numeric character in statement label at (1)
io_grib_share.f90:38:11:

    2015-05-15).  */
           1
Error: Non-numeric character in statement label at (1)
io_grib_share.f90:38:14:

    2015-05-15).  */
              1
Error: Non-numeric character in statement label at (1)
io_grib_share.f90:38:15:

    2015-05-15).  */
               1
Error: Invalid character in name at (1)
io_grib_share.f90:40:1:

/* We do not support C11 <threads.h>.  */
1
Error: Invalid character in name at (1)
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-2-18 22:00:14 | 显示全部楼层
niki05 发表于 2017-2-18 20:48
恩 是的,我按user guide安装的,
cd wrf-fire/WRFV3
./clean -a to delete the remains of any previ ...

你这个看着是grib的库的问题,我没见过。你的netcdf安装了?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-2-18 22:10:07 | 显示全部楼层
对的,我的netcdf(4.1.3)已经成功安装了,所有的步骤都对了,只是./compile em_fire >& compile.log这一步编译出来的log有问题,你说是grib库的问题,那我应该怎么修改呢,谢谢指导,不能私信大侠,又很着急,希望大侠留下联系方式,QQ或者微信都可以,拜托了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-2-19 07:46:52 | 显示全部楼层
niki05 发表于 2017-2-18 22:10
对的,我的netcdf(4.1.3)已经成功安装了,所有的步骤都对了,只是./compile em_fire >& compile.log这一 ...

你先串行编译试试。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-2-19 11:02:31 | 显示全部楼层
{:eb502:}{:eb502:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2018-4-16 20:02:17 | 显示全部楼层
学习ing……
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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