爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 35788|回复: 17

[求助] linux安装 cost733class-1.2 编译错误make: *** [all-recursive] 错误

[复制链接]

新浪微博达人勋

发表于 2020-8-10 20:12:00 | 显示全部楼层 |阅读模式
10金钱
make[1]: Entering directory `/share/home/abu1/jjzheng/cost733class-1.2_RC_revision89/src'
gfortran -I../netcdf-4.0.1/f90 -I../grib_api-1.9.18/fortran  -fbounds-check -fbacktrace -Wall -c -o netcdfcheck.o netcdfcheck.f90
netcdfcheck.f90:7.6:

  use netcdf
      1
Fatal Error: File 'netcdf.mod' opened at (1) is not a GNU Fortran module file
make[1]: *** [netcdfcheck.o] Error 1
make[1]: Leaving directory `/share/home/abu1/jjzheng/cost733class-1.2_RC_revision89/src'
make: *** [all-recursive] Error 1


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

新浪微博达人勋

 楼主| 发表于 2020-8-16 12:51:43 | 显示全部楼层
1.在Ubuntu下安装下列软件
(1)apt-get update
(2)apt-get install make
手动安装make:
wget http://ftp.gnu.org/gnu/make/make-4.2.tar.gz
tar -zxvf make-4.2.tar.gz
cd make-4.2
./configure
make
make install
ln -s -f /usr/local/bin/make  /usr/bin/make
(3) apt install automake1.11
(4)apt install gfortran
(5)apt install gcc+   
(6)apt install gcc-
(7)apt install g++
(8)apt-get install libtool   
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
2.根据安装手册解压后运行./compile_gnu_debug.sh,这一步运行完在src中会有cost733class
cp -r cost733class /usr/local/bin  
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 成长值: 0
发表于 2020-8-10 22:14:27 | 显示全部楼层
很明显你没有安装netcdf-c和netcdf-fortran
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-8-11 22:57:49 | 显示全部楼层
kermit 发表于 2020-8-10 22:14
很明显你没有安装netcdf-c和netcdf-fortran

https://zhuanlan.zhihu.com/p/37510795
https://www.cnblogs.com/fsquared/p/3804863.html
大神,我查了一下这安这两个还要安装Intel,请问您有安装过这俩软件么,有没有好的建议或者安装包,感谢
联系方式:1742420988@qq.com
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 成长值: 0
发表于 2020-8-11 23:34:13 | 显示全部楼层
zhengjingjing 发表于 2020-8-11 22:57
https://zhuanlan.zhihu.com/p/37510795
https://www.cnblogs.com/fsquared/p/3804863.html
大神,我查 ...

不是这样的 netcdf-fortran 既可以用intel fortran编译,也能用gfortran编译

评分

参与人数 1金钱 +5 收起 理由
zhengjingjing + 5

查看全部评分

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

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-8-16 12:45:37 | 显示全部楼层
kermit 发表于 2020-8-11 23:34
不是这样的 netcdf-fortran 既可以用intel fortran编译,也能用gfortran编译

恩,我没装netcdf-fortran 和netcdf-c,我在Ubuntu中装了
apt install gfortran
apt install gcc+   
apt install gcc-
apt install g++
现在已经安装成功了,谢谢
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2020-9-7 09:12:54 | 显示全部楼层
楼主你好,我最近也需要使用这个软件但官网上不去,如果方便的话软件包能传我一份吗{:eb302:}{:eb302:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2020-10-12 18:48:43 | 显示全部楼层
楼主你好,运行./compile_gnu_debug.sh,这一步运行结束后src中并没有有cost733class,请问这是什么问题?求解答
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-11-1 15:27:34 | 显示全部楼层
云胡不喜 发表于 2020-10-12 18:48
楼主你好,运行./compile_gnu_debug.sh,这一步运行结束后src中并没有有cost733class,请问这是什么问题?求 ...

应该是少什么插件,笔记本安装会麻烦一点,你把我上面的软件都安装一下试试,我现在用台式机安装没出现这种问题了
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2021-1-25 16:10:18 | 显示全部楼层
可以分享软件包吗。邮箱928528658@qq.com
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

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

本版积分规则

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

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

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