CESM移植问题小记

这篇博客记录了在移植CESM过程中遇到的问题及解决办法,包括XML解析错误、Perl模块缺失、编译错误、依赖库配置问题、Fortran语法错误等,并提供了相应的修复步骤。
摘要由CSDN通过智能技术生成

问题1:

"/wps/home/clm5.0/python-2.7.15/lib/python2.7/xml/etree/ElementTree.py", line 1523, in _raiseerror

   raise err

xml.etree.ElementTree.ParseError: mismatched tag: line 72, column 73

解决办法:configure_machine.xml或者configure_complier.xml文件标签可能错误,比如标签不闭合等,仔细检查。

 

 

问题2:

[chengqy@login04 testX]$ ./case.build 

Building case in directory /wps/home/clm5.0/cesm/cime/scripts/testX

sharedlib_only is False

model_only is False

Setting resource.RLIMIT_STACK to -1 from (10485760, -1)

Generating component namelists as part of build

Creating component namelists

  Calling /wps/home/clm5.0/cesm/components/cam//cime_config/buildnml

    ...calling cam buildcpp to set build time options

CAM namelist copy: file1 /wps/home/clm5.0/cesm/cime/scripts/testX/Buildconf/camconf/atm_in file2 /wps/home/chengqy/src/Outputs/testX/run/atm_in 

  Calling /wps/home/clm5.0/cesm/components/clm//cime_config/buildnml

ERROR: Command /wps/home/clm5.0/cesm/components/clm/bld/build-namelist failed rc=2

out=

err=Can't locate XML/LibXML.pm in @INC (you may need to install the XML::LibXML module) (@INC contains: 

BEGIN failed--compilation aborted at /wps/home/chengqy/usr/local/soft/clm5.0/cesm/cime/utils/perl5lib/Config/SetupTools.pm line 5.

Compilation failed in require at /wps/home/chengqy/usr/local/soft/clm5.0/cesm/components/clm/bld/CLMBuildNamelist.pm line 413.

解决办法:perl包未装全,在perl安装目录下分别执行以下语句(注:在perl安装好的目录下执行)

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值