Installation of CMG 2022 Software on Linux
Installation of CMG 2022 Software on Linux
cmgl.ca #FutureOfSimulation
22.CMG.02
Contents
Overview ................................................................................................................................... 3
Getting Started ......................................................................................................................... 4
Security Upgrade to RLM 12.3 .............................................................................................................. 4
Installation Best Practices ...................................................................................................................... 4
System Requirements............................................................................................................................ 4
Minimum System Requirements ....................................................................................................................... 4
Recommended Hardware for Simulation of Large Models ................................................................................ 4
Checking your Operating System Level ............................................................................................................ 5
Preparing to Install ................................................................................................................................. 5
Logging in as root ............................................................................................................................................. 5
Checking for Actively Running CMG Software .................................................................................................. 5
Accessing the Installation File ........................................................................................................................... 6
Note: CMG Software is provided on two releases. The Windows† release has a 'W' in the name,
and the Linux† release has a 'U' in the name. For example, 2022.101.GW is a Windows release
and 2022.101.GU is a Linux release.
2. Installation of CMG software requires access to the installation files. This may require
root access to the computer.
System Requirements
Minimum System Requirements
CMG software will run on the following platforms:
• Intel† x64 computer with minimum Red Hat Enterprise Linux 7.2 operating
system, recommended Red Hat Enterprise Linux 8.4.
Note: CMG software is tested at the levels listed. A higher OS level is allowed, as long as it is
backwards compatible with the listed OS level.
Preparing to Install
Logging in as root
You may need to log in as root user for the installation script to function correctly. The
installation script may not be able to install the files to the desired location as a normal user.
In addition, a normal user may not be able to mount the installation files.
Checking for Actively Running CMG Software
Installing a new version of CMG software should not interfere with any currently installed
CMG versions. If any CMG software is running on the computer, it can be left running while
the installation of the new software proceeds.
If you do need to determine if CMG software is running, you may use the ps command to
search for each of the simulators individually:
ps –edaf | grep st
ps –edaf | grep mx
ps –edaf | grep gm
If the files are in another directory (a file share, for example) you’ll need to change to that location
instead.
To run the script from the installation directory, you would enter:
./unixinst.sh
Follow the instructions as the script executes. The script requires the following information:
• Directory in which you want the software installed (/opt/cmg is a good location, but the
software can reside anywhere there is sufficient space).
• Directory where the installation files are. i.e. the directory above.
• Whether this computer will be used as a Network License Server.
• If it is a Network License Server, whether you want the Customer Experience
Improvement Program (CEIP) software to run automatically.
Whether you wish to generate a Hostid for the computer you are installing on (required if the
computer is a Network License Server).
Important: If this machine will be part of a computer cluster such as LSF, OGE or PBS, you will
need to follow additional installation steps such as configuring your cluster for the new node,
making sure files are properly shared, and installing the cmgsimrun executable to the PATH.
Starting 2020.10, the CMG Linux installation script now installs the cmgsimrun executable under
the Launcher folder and adds a symbolic link in /usr/local/bin. Refer to the “Setting up Remote
Schedulers” section of the Launcher User’s Guide for information specific to your cluster
software for additional information.
This will produce output similar to the following (actual numbers will differ):
HOST ID INFORMATION (VERSION 2022.00)
Please fax or email this form to CMGL at:
Computer Modelling Group Ltd.
Attention: License Coordinator
Address: 3710 33 Street NW. Calgary, AB., Canada T2L 2M1
Phone: 1-403-531-1300
Fax: 1-403-289-8502
Email: [email protected]
Customer Information
Name: Jane Doe
Company: Doe & Associates Ltd.
Location: Calgary, AB
Phone: 403-555-1234
Fax: 403-555-5678
Email: [email protected]
Site Code and License Configuration Information:
Host name: valhalla
Host ID Information:
001e4fdf75a7
ip=123.45.67.89
host=valhalla
Operating System Red Hat Enterprise Linux Server release 6.2 (Santiago)
OS Info Linux 2.6.18-128.el5 x86_64
MACHTYPE x86_64-redhat-linux-gnu
CMG_PLATFORM linux_x64
Environment Variables:
CMG_HOME=/opt/cmg
CMG_LIC_HOST=valhalla
Send this information to us at [email protected] and we will generate a License File and
send it back to you.
Note: Although you can start the License Server at this point, it will not provide you with any
licenses until you install the License File provided by CMG.
You can check the status of your licenses using a Web browser. Start the browser and go to
URL http://localhost:5054/. See A Guide to Using CMG Licensing for more information.
stop() {
su - $rlmuser -c "$rlmdowndir/rlmdown RLM -q"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 2
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
If you are using the C-shell, you will want to add the following lines to your .cshrc file:
set CMG_HOME=/put/your/CMG/path/in/here
set CMG_LIC_HOST=computer_name:port
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/path/here
If you are running in the Korn shell (or one of its derivatives), add these lines:
export CMG_HOME=/put/your/CMG/path/in/here
export CMG_LIC_HOST=computer_name:port
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/path/here
Note: The current release of CMG software supports having multiple versions of all three
simulators on a single LD_LIBRARY_PATH environment variable. Future versions may present
conflicts, however. You may want to limit the number of versions in the LD_LIBRARY_PATH to
avoid conflicts. You can also make use of the RunSim script (described in Error! Reference
source not found.) to set the variable on a per-run basis.
The 2022.10 version of CMG Launcher (with LSF, SGE or PBS/Torque support) will set this
environment variable automatically for the user if a job is being submitted to run a simulator on a
Linux_x64 machine. The CMG_HOME environment variable must be set correctly.
See the document Readme_Linux_libs.pdf for information on determining the versions of
runtime libraries.
With the 2022.10 release, CMG supports RHEL 8.2. The 2022.10 release was built on a
machine with RHEL 7 update 2.
Checking for the Runtime Libraries
To determine whether the required RPM packages are installed, run the following
commands:
rpm -qa glibc
rpm -qa libgcc
rpm -qa libstdc++
Output from each of these commands may list zero, one or two installed packages. For
libstdc++, more than two may be listed, but ignore the ones that are not named exactly
libstdc++-x.x.x-xx (e.g. ignore libstdc++-devel-x.x.x-xx).
Note that 32-bit packages end in .i686 while 64-bit packages end in .x86_64.
Example 4: Running IMEX 2022.10 on a local data file using additional command-line options
to use parallel processing:
RunSim.sh imex 2022.10 mxspe001.dat –doms –parasol 4