爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: andrewsoong

netcdf4.2及以上版本的安装:For C and Fortran

  [复制链接]

新浪微博达人勋

发表于 2014-10-26 13:53:23 | 显示全部楼层
夏夜 发表于 2014-10-26 13:06
是的,你把文件夹以及子文件的权限都改了(chmod -R 777 **  ) 再试试。

你好,我执行了chmod -R 777 GEOS-Chem-Libraries/* 之后再执行make COMPILER=pgi PREFIX=/usr/local/netcdf GCC=yes之后还是会报错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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -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... yes
checking whether we are using the GNU Fortran 77 compiler... no
checking whether pgf90 accepts -g... yes
configure: setting up Fortran 90
checking what FC is set to... pgf90
checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files
make[1]: *** [nc4] Error 1
make[1]: Leaving directory `/usr/local/GEOS-Chem-Libraries/src'
make: *** [all] Error 2
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-10-26 13:55:44 | 显示全部楼层
belindee 发表于 2014-10-26 13:53
你好,我执行了chmod -R 777 GEOS-Chem-Libraries/* 之后再执行make COMPILER=pgi PREFIX=/usr/local/net ...

你在什么机器上装的?有没有fortran编辑器
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-10-26 13:56:21 | 显示全部楼层
belindee 发表于 2014-10-26 13:53
你好,我执行了chmod -R 777 GEOS-Chem-Libraries/* 之后再执行make COMPILER=pgi PREFIX=/usr/local/net ...

你在什么机器上装的?有没有fortran编辑器
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-10-26 13:59:55 | 显示全部楼层
本帖最后由 夏夜 于 2014-10-26 14:01 编辑
夏夜 发表于 2014-10-26 13:56
你在什么机器上装的?有没有fortran编辑器

或者你参考一下这个安装netcdf4.1.1:

http://bbs.06climate.com/forum.php?mod=viewthread&tid=27031
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-10-26 14:05:21 | 显示全部楼层
夏夜 发表于 2014-10-26 13:59
或者你参考一下这个安装netcdf4.1.1:

http://bbs.06climate.com/forum.php?mod=viewthread&tid=27031
...

我装了pgi编译器了。好的我去参考一下,谢啦~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-10-27 16:43:11 | 显示全部楼层
谢谢楼主,膜拜学习一下
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-11-1 10:16:21 | 显示全部楼层
zan zanz zan
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-11-4 19:45:44 | 显示全部楼层
必须回复啊,希望能学到现在正急需的东西,再次感谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-11-8 11:33:14 | 显示全部楼层
额额,学习了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-11-8 19:40:00 | 显示全部楼层
好东西,必须回
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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