Porting CESM 2.1.5 error:root:Command

shiannder

james
New Member
Hi,

I am trying to port the CESMv2.1.5 into my plasma supercomputer at the University of New Hampshire.

I follow the steps from the websites:
Download CESM — CESM Tutorial

I pasted the following in my command line:
But the return prompt is

[jsl1063@ln-0002 my_cesm_code]$ ./manage_externals/checkout_externals
Processing externals description file : Externals.cfg (/mnt/lustre/letscher/jsl1063/my_cesm_code)
Checking local status of required & optional components: cam, cice, cime, cism, clm, mosart, pop, rtm, ww3,
Checking out externals: cime, ERROR:root:Command '['git', '-C', '/mnt/lustre/letscher/jsl1063/my_cesm_code/cime', 'remote', 'add', 'ESMCI_cime', 'GitHub - ESMCI/cime: Common Infrastructure for Modeling the Earth']' returned non-zero exit status 129.
ERROR:root:Failed with output:
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]

ERROR: In directory
/mnt/lustre/letscher/jsl1063/my_cesm_code
Process did not run successfully; returned status 129:
git -C /mnt/lustre/letscher/jsl1063/my_cesm_code/cime remote add ESMCI_cime GitHub - ESMCI/cime: Common Infrastructure for Modeling the Earth
See above for output from failed command.

ERROR:root:Failed with output:
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]

ERROR: In directory
/mnt/lustre/letscher/jsl1063/my_cesm_code
Process did not run successfully; returned status 129:
git -C /mnt/lustre/letscher/jsl1063/my_cesm_code/cime remote add ESMCI_cime GitHub - ESMCI/cime: Common Infrastructure for Modeling the Earth
See above for output from failed command.


ERROR: Failed with output:
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]

ERROR: In directory
/mnt/lustre/letscher/jsl1063/my_cesm_code
Process did not run successfully; returned status 129:
git -C /mnt/lustre/letscher/jsl1063/my_cesm_code/cime remote add ESMCI_cime GitHub - ESMCI/cime: Common Infrastructure for Modeling the Earth
See above for output from failed command.

to which I wrote with -c instead of -C:


After trying the "./manage_externals/checkout_externals" again, i get the error code below:

[jsl1063@ln-0002 my_cesm_code]$ ./manage_externals/checkout_externals
Processing externals description file : Externals.cfg (/mnt/lustre/letscher/jsl1063/my_cesm_code)
Processing externals description file : .gitmodules (/mnt/lustre/letscher/jsl1063/my_cesm_code/cime)
ERROR:root:submodule status has no section, 'CIME/non_py/cprnc'
Check section names in externals config file

ERROR: submodule status has no section, 'CIME/non_py/cprnc'
Check section names in externals config file

my "/mnt/lustre/letscher/jsl1063/my_cesm_code/cime/CIME/non_py/cprnc" contains nothing in the directory.

Is there anyway to fix this issue?

Thanks,
James
 

jedwards

CSEG and Liaisons
Staff member
I suspect that you have a really old version of git on your system. git -C has been supported for quite some time.
 

shiannder

james
New Member
Hi,

Thank you for the reply, I got it working.

I needed to load the git, python, and svn.

My code:
  • module load git-gcc8/2.24.0
  • module load Anaconda3/2022.05
  • module load svn/subversion-1.10.6
  • git clone GitHub - ESCOMP/CESM: The Community Earth System Model my_cesm_code
  • cd my_cesm_code/
  • git tag --list 'release-cesm2*'
  • git checkout release-cesm2.1.5
  • ./manage_externals/checkout_externals

in sftp:

cd /mnt/lustre/letscher/jsl1063/my_cesm_code/cime/config/cesm/machines
get and modify code to use for my marvin supercomputer
  • config_batch.xml
  • config_compilers.xml
  • config_machines.xml
 
Back
Top