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

Finding perl, csh, and sh

Jbuzan

Jonathan R. Buzan
Member
Hello Discuss CESM staff:

I am trying to ./preview_namelists in my case, but I get an error related to sh ( probably csh and perl as well).
$ ./preview_namelists
ERROR: module command None purge failed with message:
/bin/sh: None: command not found

I set up the config_machines.xml:
<module_system type="module">
<init_path lang="perl">/usr/bin/perl</init_path>
<init_path lang="csh">/usr/local/bin/csh</init_path>
<init_path lang="sh">/usr/bin/sh</init_path>
<cmd_path lang="perl">/usr/bin/perl perl</cmd_path>
<cmd_path lang="sh">/usr/bin/sh sh</cmd_path>
<cmd_path lang="csh">/usr/local/bin/csh csh</cmd_path>
<modules>
<command name="purge"/>
<command name="load">cray/23.12</command>
<command name="load">PrgEnv-gnu</command>
<command name="load">cray-parallel-netcdf</command>
<command name="load">cray-hdf5-parallel</command>
<command name="load">cray-netcdf-hdf5parallel</command>
<command name="load">cray-python</command>
</modules>
</module_system>

sh, csh, and perl are all available on the Eiger machine, just not as modules.

jbuzan@eiger-ln003:~/.cime [15:44:00] $ which perl
/usr/bin/perl
jbuzan@eiger-ln003:~/.cime [15:47:47] $ which sh
/usr/bin/sh
jbuzan@eiger-ln003:~/.cime [15:47:48] $ which csh
/usr/local/bin/csh
I think I do not understand the syntax of the xml file. the CSCS staff was wondering if I can call these programs without modules.

Cheers,
-Jonathan
 

jedwards

CSEG and Liaisons
Staff member
These are not pointers to the shells themselves, they are pointers to the modules interface to the shells
if you aren't using modules you don't need them. It looks like you have module_system type="None" it should be
type="none"
 
Top