爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10886|回复: 22

WRF安装出错,求解!

[复制链接]
发表于 2016-2-1 19:21:13 | 显示全部楼层 |阅读模式

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

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

x
报不容易pgi,netcdf,ncl安装成功,结果又在安装WRF3.4.1的时候碰壁了,compile完了之后,main文件夹下面没有显示ndown.exe, real.exe, and wrf.exe 这三个文件。查看compile.log之后,我查了一下,一下是报错信息,求解!不胜感激!
@}_WV])3VTL%VGUHTL8(~]5.png
]$354C){JLRL6_@)0ZKL_)I.png
_Y8AI3KAI6]I]IKO2~4OR_L.png
3@GT@[R8B_@T4}Q7$CYC)IJ.png
FE5BMF0}T0S4M]Y`G`H(2_G.png
MD2V%W3(T}DI[475`U{OU@D.png
YVOE@NNL`IY)TSK3TGURN$5.png
密码修改失败请联系微信:mofangbao
发表于 2016-2-1 21:06:07 | 显示全部楼层
你并没有pgcc编译程序
先./clean –a
./configure
选择PGI compiler with gcc,至于是serial、smpar或dmpar就看你要怎么执行了
再选择1.basic
编辑configure.wrf
将CCOMP由pgcc改为gcc
./compile em_real >compile.log 2>&1
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-2-2 09:27:45 | 显示全部楼层
hwl1943 发表于 2016-2-1 21:06
你并没有pgcc编译程序
先./clean –a
./configure

请问如何选择PGI compiler with GCC?我的工作站只有一个至强cpu(8核),是该选serial还是其他的呢?
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-2-2 09:42:30 | 显示全部楼层
hwl1943 发表于 2016-2-1 21:06
你并没有pgcc编译程序
先./clean –a
./configure

原来是在./configure后再选择PGI compiler with GCC,我以为是在./configure时就要指定编译器,再下小白一枚,见笑了。
密码修改失败请联系微信:mofangbao
发表于 2016-2-2 09:52:58 | 显示全部楼层
好高端的感觉,希望楼主能顺利解决~
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-2-2 09:53:38 | 显示全部楼层
hwl1943 发表于 2016-2-1 21:06
你并没有pgcc编译程序
先./clean –a
./configure

还真的行了,万分感谢啊大神!祝新春快乐哈!
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-2-2 10:46:28 | 显示全部楼层
hwl1943 发表于 2016-2-1 21:06
你并没有pgcc编译程序
先./clean –a
./configure

请问pgcc编译程序与gcc编译程序有什么区别?网上好像搜索不到pgcc的有关资料哦
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-2-2 11:59:46 | 显示全部楼层
hwl1943 发表于 2016-2-1 21:06
你并没有pgcc编译程序
先./clean –a
./configure

大神求救!我在编译wps的过程中也出问题了,三个*.exe文件都没出现,错误基本都是:
make[1]: ifort: Command not found
make[1]: [wrf_debug.o] Error 127 (ignored)
我原本想按照WRF安装情况修改configure.wps文件中的内容,比如把ifort改成PGI,结果怎么也打不开configure.wps

请问我该怎么办?
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-2-2 13:35:28 | 显示全部楼层
hwl1943 发表于 2016-2-1 21:06
你并没有pgcc编译程序
先./clean –a
./configure

configure.wps文件可以间接修改了,修改前指这样的:
# configure.wps
#
# This file was automatically generated by the configure script in the
# top level directory. You may make changes to the settings in this
# file but be aware they will be overwritten each time you run configure.
# Ordinarily, it is necessary to run configure once, when the code is
# first installed.
#
# To permanently change options, change the settings for your platform
# in the file arch/configure.defaults, the preamble, and the postamble -
# then rerun configure.
#

.SUFFIXES: .F .f .c .o

SHELL                   =       /bin/sh

COMPRESSION_LIBS        =        -L/data3a/mp/gill/WPS_LIBS/local/lib \
                                -ljasper -lpng12 -lpng -lz

COMPRESSION_INC                =        -I/data3a/mp/gill/WPS_LIBS/local/include

NCARG_LIBS                =        -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c \
                                -L/usr/X11R6/lib -lX11

NCARG_LIBS2                =

FDEFS                        =        -DUSE_JPEG2000 -DUSE_PNG

# Listing of options that are usually independent of machine type.
# When necessary, these are over-ridden by each architecture.

ARFLAGS                        =       

PERL                        =        perl

RANLIB                        =        echo

WRF_DIR                        =        ../WRFV3

WRF_INCLUDE     =       -I$(WRF_DIR)/external/io_netcdf \
                        -I$(WRF_DIR)/external/io_grib_share \
                        -I$(WRF_DIR)/external/io_grib1 \
                        -I$(WRF_DIR)/external/io_int \
                        -I$(WRF_DIR)/inc

WRF_LIB         =       -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
                        -L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
                        -L$(WRF_DIR)/external/io_int -lwrfio_int \
                        -L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
                        -L$(NETCDF)/lib  -lnetcdf

#### Architecture specific settings ####

# Settings for PC Linux x86_64, Intel compiler        serial
#
FC                =        ifort
SFC                =        ifort
FFLAGS                =        -FR -convert big_endian
F77FLAGS        =        -FI -convert big_endian
FNGFLAGS        =        $(FFLAGS)
LDFLAGS                =       
CC                =        gcc
SCC                =        gcc
CFLAGS                =        -w
CPP                =        /lib/cpp -C -P -traditional
CPPFLAGS        =        -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32

###########################################################
#
#        Macros, these should be generic for all machines

LN                =        ln -sf
MAKE                =        make -i -r
RM                =         /bin/rm -f
CP                =         /bin/cp
AR                =        ar ru

.IGNORE:
.SUFFIXES: .c .f .F .o

#        There is probably no reason to modify these rules

.c.o:
        $(RM) $@
        $(CC) $(CPPFLAGS) $(CFLAGS) -c $<       

.f.o:
        $(RM) $@ $*.mod
        $(FC) $(F77FLAGS) -c $< $(WRF_INCLUDE)

.F.o:
        $(RM) $@ $*.mod
        $(CPP) $(CPPFLAGS) $(FDEFS) $(WRF_INCLUDE) $< > $*.f90
        $(FC) $(FFLAGS) -c $*.f90 $(WRF_INCLUDE)
#        $(RM) $*.f90
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-2-2 13:46:43 | 显示全部楼层
hwl1943 发表于 2016-2-1 21:06
你并没有pgcc编译程序
先./clean –a
./configure

我将FC  = ifort,SFC   = ifort,改成 FC  = PGI,SFC   = PGI,之后运行,也出错,错误是:
PGI:command not found
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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