Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

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.
 
Top