登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
参考官网的用户手册和论坛中别人的帖子安装CAM3.0模式,但是在configure的时候出了错误,尝试了几种办法都没有解决
以下是我的安装记录以及错误:
2. 解压gunzip -c cam3.0 sourcecode.tar.gz | tar xvf -
gunzip -c cam3.0 forall datasets.tar.gz | tar xvf –
gunzip -c cam3.0 64x128 T42 datasets.tar.gz | tar xvf –
3. setenv CSMDATA ‘pwd‘
ps:bash中用export语句: 配置环境变量:
exportCAMROOT=/share/home/student4/cam1/models/atm/cam
exportCSMDATA=/share/home/student4/cam1/models/atm/inputdata(自己创建的文件夹)
exportINC_NETCDF=/share/apps/netcdf-4.4/include
exportLIB_NETCDF=/share/apps/netcdf-4.4/lib
exportMOD_NETCDF=/share/apps/netcdf-4.4/include
exportUSER_FC=/share/apps/openmpi-1.4.3/bin/mpif90
exportUSER_CC=/opt/intel/bin/icc
exportINC_MPI=/share/apps/openmpi-1.4.3/include
exportLIB_MPI=/share/apps/openmpi-1.4.3/lib
4. ./cam1/models/atm/cam/bld/configure -test 这一步出现问题:
creating /share/home/student4/Filepath
creating /share/home/student4/params.h
creating /share/home/student4/misc.h
creating /share/home/student4/preproc.h
creating /share/home/student4/Makefile
creating /share/home/student4/config_cache.xml
Looking for a valid GNU make... using gmake
Testing for Fortran 90 compatible compiler... using mpif90
Testing NetCDF library... **** FAILED ****
Issued the command:
gmake test_nc 2>&1
The output was:
cat: Srcfiles: No such file or directory
Makefile:1008: /share/home/student4/Depends: No such file or directory
/share/home/student4/cam1/models/atm/cam/bld/mkSrcfiles > /share/home/student4/Srcfiles
/share/home/student4/cam1/models/atm/cam/bld/mkDepends Filepath Srcfiles > /share/home/student4/Depends
/share/apps/openmpi-1.4.3/bin/mpif90 -c -DHIDE_MPI test_nc.F90
test_nc.F90(3): #error: can't find include file: netcdf.inc
gmake: *** [test_nc.o] Error 1
我自己的理解是netcdf的问题,但是经检查路径里都是有netcdf.inc这个文件的,因为是在学校的大型机上安装的,经查找发现学校大型机上有不同版本的netcdf和mpi,如下:
whereis netcdf: /share/apps/netcdf-4.4/include/netcdf.h /share/apps/netcdf-4.4/include/netcdf.mod /share/apps/netcdf-4.4/include/netcdf.inc /share/apps/netcdf-4.0.1/include/netcdf.mod /share/apps/netcdf-4.0.1/include/netcdf.inc /share/apps/netcdf-4.0.1/include/netcdf.h /share/apps/netcdf-4.0.1/include/netcdf.hh
mpif90:
/share/apps/openmpi-intel-2011/bin/mpif90
/share/apps/intel/compilers_and_libraries_2018.1.163/linux/mpi/intel64/bin/mpif90 /share/apps/openmpi-1.4.3/bin/mpif90 /share/apps/intel2015/impi/5.0.3.048/intel64/bin/mpif90 几个版本的netcdf和mpi都做了尝试,但是不管怎样都是这个错误,在别人的帖子中也没有找到解决方法,求助各位看一下是哪里的问题,谢谢大家
|