爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: ztftom

[原创]搞定Ubuntu: 单机WRF安装

  [复制链接]
发表于 2011-10-23 00:33:26 | 显示全部楼层
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-10-23 08:46:38 | 显示全部楼层
artmunich 发表于 2011-10-22 23:59
checking if Fortran "byte" is C "signed char"... configure: error: Could not link conftestf.o and co ...

cheking FC显示的是什么? 把之前显示的都贴出来吧。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-10-23 08:47:29 | 显示全部楼层
artmunich 发表于 2011-10-23 00:05
另外,你说的那个自动寻址下载netcdf的,在CentOS上不行,提示如下(我试了,把netcdf-bin换成netcdf也不行 ...

那应该是source里没有NETCDF。就自己下载安装吧。
密码修改失败请联系微信:mofangbao
发表于 2011-10-23 08:51:36 | 显示全部楼层
呃,这个,还不熟悉linux的先保存下来慢慢学习吧
密码修改失败请联系微信:mofangbao
发表于 2011-10-23 10:04:03 | 显示全部楼层
我没装上,所以无法学习哈哈。谢谢楼主
密码修改失败请联系微信:mofangbao
发表于 2011-10-23 11:29:17 | 显示全部楼层
昨天的问题我上网搜了,然后改了一下bashrc。今天再做的时候出现了更绝的问题,无招了,以前也跟何永利版主问过:
[root@huai ~]# pgf90
pgf90-Warning-No files to process
这显然是正确的,对吧,然后去装netcdf
[root@huai netcdf-4.1.2]# ./configure --disable-dap --prefix=/usr/local/netcdf FC=pgf90
这样子的,后面FC=pgf90是指定编译器的,因为教程上基本都有这个,所以加上去了
出现的结果是这样子的:
configure: netCDF 4.1.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: checking user options
checking whether CXX is set to ''... no
checking whether FC is set to ''... no
checking whether F90 is set to ''... no
checking whether a NCIO_MINBLOCKSIZE was specified... 256
checking whether udunits is to be built... no
checking if fsync support is enabled... yes
checking whether extra valgrind tests should be run... no
checking whether libcf is to be built... no
checking whether a location for the HDF4 library was specified...
checking whether reading of HDF4 SD files is to be enabled... no
checking whether to fetch some sample HDF4 files from Unidata ftp site to test HDF4 reading (requires wget)... no
checking whether parallel I/O for classic and 64-bit offset files using parallel-netcdf is to be enabled... no
checking whether a location for the parallel-netcdf library was specified... no
checking whether new netCDF-4 C++ API is to be built... no
checking whether extra example tests should be run... no
checking whether parallel IO tests should be run... no
checking whether a location for the HDF5 library was specified...
checking whether a location for the ZLIB library was specified...
checking whether a location for the SZLIB library was specified...
checking whether a default chunk size in bytes was specified... 4194304
checking whether a maximum per-variable cache size for HDF5 was specified... 67108864
checking whether a number of chunks for the default per-variable cache was specified... 10
checking whether a default file cache size for HDF5 was specified... 4194304
checking whether a default file cache maximum number of elements for HDF5 was specified... 1009
checking whether a default cache preemption for HDF5 was specified... 0.75
checking whether netCDF-4 logging is enabled... no
checking whether cdmremote client is to be built... no
checking whether DAP client is to be built... no
checking whether a path for curl-config was specified... no
checking whether a location for curl installation was specified... no
checking whether dap remote testing should be enabled (default on)... no
checking whether the time-consuming dap tests should be enabled (default off)... no
checking whether netCDF extra tests should be run (developers only)... no
checking whether Fortran compiler(s) should be tested during configure... yes
checking whether FFIO will be used... no
checking whether to skip C++, F77, or F90 APIs if compiler is broken... yes
checking whether only the C library is desired... no
checking whether examples should be built... yes
checking whether F77 API is desired... yes
checking whether any Fortran API is desired... yes
checking whether F90 API is desired... yes
checking whether fortran type sizes should be checked... yes
checking whether C API is desired... yes
checking where to get netCDF C-only library for separate fortran libraries...
checking whether CXX API is desired... yes
checking whether v2 netCDF API should be built... yes
checking whether the ncgen/ncdump/nccopy should be built... yes
checking whether large file (> 2GB) tests should be run... no
checking whether benchmaks should be run (experimental)... no
checking whether extreme numbers should be used in tests... yes
checking where to put large temp files if large file tests are run... .
checking whether a win32 DLL is desired... no
checking whether separate fortran libs are desired... yes
configure: finding C compiler
checking for xlc... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking whether cc understands -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking whether a CURLOPT_KEYPASSWD is defined... no
configure: finding Fortran compiler (will not be used if Fortran API is not desired)
checking whether we are using the GNU Fortran compiler... no
checking whether pgf90 accepts -g... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether pgf90 accepts -g... no
configure: setting up Fortran 90
checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files
无法编译f90文件了,我的bashrc写的也是正确的啊,奇怪了
这是怎么回事,lz碰到过吗
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-10-23 11:48:34 | 显示全部楼层
artmunich 发表于 2011-10-23 11:29
昨天的问题我上网搜了,然后改了一下bashrc。今天再做的时候出现了更绝的问题,无招了,以前也跟何永利版主 ...

你用的是PGI编译器吧? 这里的意思是说的PGI编译器不接受GFORTRAN的编译器flags
密码修改失败请联系微信:mofangbao
0
早起挑战累计收入
发表于 2011-10-23 11:49:22 | 显示全部楼层
楼主很给力,必须来顶贴,以后我装的时候希望能接着经验少走弯路啊
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-10-23 11:53:59 | 显示全部楼层
ztftom 发表于 2011-10-23 11:48
你用的是PGI编译器吧? 这里的意思是说的PGI编译器不接受GFORTRAN的编译器flags

你可以在.bashrc加上一行
export FC=gforran
这样就能让WRF知道是用gfortran来编译,而不会错用PGI编译器了。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-10-23 11:54:18 | 显示全部楼层
artmunich 发表于 2011-10-23 11:29
昨天的问题我上网搜了,然后改了一下bashrc。今天再做的时候出现了更绝的问题,无招了,以前也跟何永利版主 ...

你可以在.bashrc加上一行
export FC=gforran
这样就能让WRF知道是用gfortran来编译,而不会错用PGI编译器了。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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