![]() ![]()
|
MRG Interactive DevelopmentsMesoscale Research Group, McGill/SUNY/UQAM |
The Simple Software Manager (SSM) is a SourceForge registered project managed by developers at the Canadian Meteorological Centre. It is intended to be a simple mechanism for installing and maintaining software packages. Full documentation for the package is available here.
This installation guide covers installations by the "armnlib" user in the
$HOME/ssm directory. Paths will need to be modified in the
following instructions if a non-standard user or a non-standard target directory is used,
so make sure that you keep track of your target directory when following these instrutions
if you are not using $HOME/ssm.
wget http://collaboration.cmc.ec.gc.ca/science/ssm/install_ssm.kshwget http://www.atmos.albany.edu/facstaff/rmctc/ssm/install_ssm-doc.ksh
diff install_ssm.ksh install_ssm-doc.ksh
If they are the same, then you're golden: carry on to the next step.
If significant differences exist, then this installation document may need to be updated. Alternatively,
you can proceed using install_ssm-doc.ksh as your installer if you dare.chmod u+x install_ssm.ksh.bash_profile
and .bash_logout files in your home directory. If the .bash_profile
file is found, then it is executed instead of .profile. This will keep the
SSM installation from running../install_ssm.kshPHASE 1 completes without errors.ECssm to the install path:ln -s ssm ECssmmv -f ./.profile_usr ./.profile_usr.backup; mv -f ./.profile ./.profile_usr; ln -s ECssm/all/share/env_univ/.profile ./.profile./install_ssm.kshPHASE 2 completes without errors../install_ssm.kshPHASE 3 completes without errors. If you get errors, try going back to steps and
following the tip provided there../install_ssm.kshPHASE 4 completes without errors.~/.profile file, modify the default values (near line 32) of the
UniEnv and SSMDOMAINHOME variables
(currently default to somewhere on dormrb02) to reproduce the system share path:
export UniEnv=${UniEnv:-/home/armnlib/ssm/all/share}
export SSMDOMAINHOME=${SSMDOMAINHOME:-/home/armnlib/ssm}
export SSMUSERDOMAINHOME=$SSMDOMAINHOME
- In the
/home/armnlib/ssm/etc/ssm.d/profile file, change the
word prepend to append to make sure that the local installation does not
come before ~/ovbin in the directory tree:
perl -pi -e 's/prepend/append/' ~/ssm/etc/ssm.d/profile
- If you are using a cluster, you will probably want all of the machines to return the same
TRUE_HOST environment variable. In the /home/armnlib/ssm/all/share/env_univ/.profile
file under the "set host/true host" section (near line 98), add a line starting with if [[ $HOST = , followed by
your local execute node names and the name of your head node. Follow the style of the CMC entries already made.
- Log out and log back in.
Under SSM, each user can be subscribed to a single
system domain and a single user domain. This is because the package modifies either the
/etc/profile and /etc/login files that is executed each time a user logs in to the
system (the system domain is defined in that file - the contents of the /etc/ssm.d
directory are also modified during a system domain subscription), or the ~/.profile_usr
file that belongs to each user independently (the appended _usr is
a product of the SSM installation). To avoid
the limitations that this implies, users are allowed to register subdomains below the user domain.
su command and entering the root password (do not use the -l
login option since it modifies the environment).ssm subscribe --system -d ~armnlib/ssmEach user will have to make a slight modification to his/her account in order to correctly access the system domain. Have the user log in and execute the following commands.
cd ~; mv -f .profile_usr .profile_usr.backup; mv -f .profile .profile_usr; ln -s ~armnlib/.profile .cd; /bin/mv -f .bash_profile .old_bash_profile; /bin/mv -f .bash_logout .old_bash_logout
This section assumes that you are installing x86-64 binaries on an x86-64 system as the "armnlib" user. If you are on an x86 (or other) system, or you are installing x86 binaries on an x86-64 system, then the architecture extensions of the binary SSM packages must be modified to agree with your build needs.
The model has to be installed in a domain separate from the rest of the RPN Library. This is because multiple versions of the model should be allowed to exist on a single system. Since SSM works by creating directories and links to the "published" packages, there will be a collision for every published file that exists in more than one model distribution. To avoid this problem, we will install the model in a separate domain, and then use the subdomain subscription feature of SSM to select the correct model and version.
export GEMSSM=/home/armnlib/ssm_gem_3.2.2ssm created -y -d ssm_gem_3.2.2echo "" >>~/ssm/etc/ssm.d/sources.list; echo "http://www.atmos.albany.edu/facstaff/rmctc/ssm/repo" >>~/ssm/etc/ssm.d/sources.list${GEMSSM}/etc/ssm.d/profile file, change the
word prepend to append to make sure that the local installation does not
come before ~/ovbin in the directory tree:
perl -pi -e 's/prepend/append/' ${GEMSSM}/etc/ssm.d/profile
ssm install -y -p env-configs_1.0_all
ssm publish -y -p env-configs_1.0_all
ssm install -y -p env-etagere_1.0_all
ssm publish -y -p env-etagere_1.0_all
ssm install -y -p environment-lib-pub_1.0_linux24-x86-64
ssm publish -y -p environment-lib-pub_1.0_linux24-x86-64
ssm install -y -p rmnlib-bin_1.0_linux24-x86-64
ssm publish -y -p rmnlib-bin_1.0_linux24-x86-64
ssm install -y -p environment-lib-priv_1.0_linux24-x86-64
ssm publish -y -p environment-lib-priv_1.0_linux24-x86-64
ssm install -y -p rmnlib-bin-extras_1.0_all (see additional information about this package)
ssm publish -y -p rmnlib-bin-extras_1.0_all
To install from source, use the following packages:
ssm install -y -p env-configs_1.0_all
ssm publish -y -p env-configs_1.0_all
ssm install -y -p env-etagere_1.0_all
ssm publish -y -p env-etagere_1.0_all
ssm install -y -p rmnlib-bin-extras_1.0_all (see additional information about this package)
ssm publish -y -p rmnlib-bin-extras_1.0_all
ssm install -y -p rmnlib-bin-extras_1.0_linux24-x86-64
ssm publish -y -p rmnlib-bin-extras_1.0_linux24-x86-64
ssm install -y -p rmnlib-lib_1.0_all
ssm publish -y -p rmnlib-lib_1.0_all
echo "http://collaboration.cmc.ec.gc.ca/science/ssm" >>$GEMSSM/etc/ssm.d/sources.list
echo "http://www.atmos.albany.edu/facstaff/rmctc/ssm/repo" >>$GEMSSM/etc/ssm.d/sources.list
ssm install -y -d $GEMSSM -p model-data_1.0_all
ssm publish -y -d $GEMSSM -p model-data_1.0_all
ssm install -y -d $GEMSSM -p gem_3.2.2_all
ssm publish -y -d $GEMSSM -p gem_3.2.2_all
ssm install -y -d $GEMSSM -p phy_4.4_all
ssm publish -y -d $GEMSSM -p phy_4.4_all
ssm install -y -d $GEMSSM -p class_3.0_all
ssm publish -y -d $GEMSSM -p class_3.0_all
ssm install -y -d $GEMSSM -p gem_3.2.2_linux24-x86-64
ssm publish -y -d $GEMSSM -p gem_3.2.2_linux24-x86-64
ssm install -y -d $GEMSSM -p phy_4.4_linux24-x86-64
ssm publish -y -d $GEMSSM -p phy_4.4_linux24-x86-64
$ARCH environment variable
ends with _CUSTOM (i.e. you are not using the CMC Portland Group
compilers), then follow these additional instructions.To be able to access the model installation (which is in a separate domain from that registered as the system domain), you will need to subscribe to the subdomain of the model version that you wish to run. From there on, running the model is easy for those familiar with the standard COMM configuration.
ssm subscribe --user -d $GEMSSMssm subscribe command and
this is the first time that the command is being run for this profile, then
follow these additional instructions.export PATH=$PATH:.~/.profile_usr then run:
. ~/.profile_usr
ouv_exp base -RCSPATH "/home/armnlib/ssm_gem_3.2.2/all/share/modeles/GEMDM/v_3.2.2/RCS
/home/armnlib/ssm_gem_3.2.2/all/share/modeles/PHY/v_4.4/RCS"echo "RMN=rmnbeta" >>mes_recettesr.make_expmkdir malib${ARCH}make gem/home/armnlib/ssm_gem_3.2.2/model-data_1.0_all/all/share/data/dfiles,
so the -inrep argument and others to Um_runent.sh
will need to be modified accordingly (see below).
The best place to get additional information about the Simple Software Manager (SSM) is at the SSM Homepage. A set of preliminary installation notes using the package manager are available here. More information about the RPN COMMunity modelling system is available at the RPN COMM website.
MRG Interactive is a supporter of open source initiatives and,
Questions or Comments? Contact our WebMaster.