爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 10139|回复: 6

求解netcdf安装时configure出现的问题

[复制链接]

新浪微博达人勋

发表于 2014-3-29 23:18:02 | 显示全部楼层 |阅读模式

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

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

x
初学wrf  在自己安装netcdf的时候遇到了点问题  希望好心人帮忙解答下
使用的是红帽的linux系统  netcdf是3.6.3的  然后解压后configure时遇到了点问题  输入./configure -prefix=usr/local/netcdf F90=pgf90 FC=pgf90 F77=pgf77 CC=pgcc CPPFLAGS=-DpgiFortran  然后结果如下
configure: netCDF 3.6.3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-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 this is a netCDF-4.x build... no
checking whether netCDF extra tests should be run (developers only)... no
checking whether documentation is to be installed... no
checking whether Fortran compiler(s) should be tested during configure... yes
checking whether configure should try to set compiler flags... 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 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 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... no
configure: finding C compiler
checking for xlc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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
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
命令输入pgf90 pgcc都没问题啊
然后make的时候就是make: *** No targets specified and no makefile found.  Stop.



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

新浪微博达人勋

发表于 2014-3-30 06:24:12 | 显示全部楼层
checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files
肯定是没装好,你运行没问题,但是编译有问题,自己写一个最简单的F90程序
end
再编译一下试试
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-3-31 19:57:05 | 显示全部楼层
xo2001 发表于 2014-3-30 06:24
checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not comp ...

是说PGI编译的时候没有编译好么?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-3-31 20:18:21 | 显示全部楼层
恩。pgi安装可能还涉及license和库之类的,能够运行pgf90,但是编译程序的时候会提示出错,你自己写一个f90,运行一下看看什么问题,再修改
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-3-31 20:20:58 | 显示全部楼层
xo2001 发表于 2014-3-31 20:18
恩。pgi安装可能还涉及license和库之类的,能够运行pgf90,但是编译程序的时候会提示出错,你自己写一个f90 ...

我编了一个fortran   运行的时候果然有问题  pgi-f95-lin64: LICENSE MANAGER PROBLEM: No such feature exists.
Feature:       pgi-f95-lin64
License path:  /home/max020729/wrf/wrf/pgi_106/license.dat:
FLEXnet Licensing error:-5,357
For further information, refer to the FLEXnet Licensing documentation,
available at "www.acresso.com".
是不是license有问题  请问怎么解决呢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-3-31 21:07:50 | 显示全部楼层
你这个是破解版本吗?破解的有说明怎么做的吧,要是正版,把license放在某个位置,然后把对应的环境变量设置好就行了。你这个license错误我没见过,是不是你直接用的别人的license?还是版本不一样?这个和版本及网卡要对应的
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-3-31 21:09:06 | 显示全部楼层
google一下看看吧,有些东西可能google知道的更多
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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