or CPT's wonderful journey through the installer towards getting IMAS on new platforms.
Disclaimer: all example steps given below are assuming BASH
being your shell of choice.
Installing main dependencies
Follow the list of requirements/dependencies as stored in https://git.iter.org/projects/IMAS/repos/access-layer/browse/README.md
Add modules to set them up in the environment.
IMAS
Getting the IMAS installer
Clone the installer using either master (recommended) or develop branch (at your own risk)
Code Block | ||||
---|---|---|---|---|
| ||||
git clone ssh://git@git.iter.org/imas/installer.git |
Preparing the configuration
Create target directory where all IMAS related tools will be deployed (will be referenced as IMAS_HOME
from now on).
Adapt site-config/Makefile.default
to the local configuration and needs. Look at tools/imas-config.in
to try to guess how to name your own site-config
file, and/or check which files are being targeted by running
Code Block | ||||
---|---|---|---|---|
| ||||
DEBUG=1 ./tools/imas-config.in |
Check if configuration is generating the expected setting for the targeted DD and AL tags by running
Code Block | ||||
---|---|---|---|---|
| ||||
make cache make help TAG_DD=a.b.c TAG_AL=x.y.z |
Building and installing
After making sure that compile time required modules are loaded, simply run, for given DD and AL versions
Code Block | ||||
---|---|---|---|---|
| ||||
make install TAG_DD=a.b.c TAG_AL=x.y.z |
IDStools
FC2K
XMLlib
Kepler
git clone https://g2bpalak@gforge6.eufus.eu/git/imasscripts
Example with real steps followed on IPP's tok
cluster.
- Installing
Saxon-HE
from https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/SaxonHE9-9-1-5J.zip/download - Installing
Blitz++
from https://github.com/blitzpp/blitz- specify
--with-pic
to configure step
- specify
- Installing more recent version of MDSplus from https://github.com/MDSplus/mdsplus (stable release 7.84.8)
- requires building the python interface in order to allow conversion with ualport.py
Updating tools/imas-config.in
Code Block language bash theme Midnight diff --git a/tools/imas-config.in b/tools/imas-config.in index 7d7cdc4..84c7f11 100755 --- a/tools/imas-config.in +++ b/tools/imas-config.in @@ -126,6 +126,7 @@ getalias() { [[ "$1" =~ ^gpu(008|010).fusion.ccfe.ac.uk$ ]] && echo "UKAEA.GPU" [[ "$1" =~ ^ipp.mpg.de$ ]] && echo "IPP-Garching" [[ "$1" =~ ^mpcdf.mpg.de$ ]] && echo "IPP-Garching" + [[ "$1" =~ ^bc.rzg.mpg.de$ ]] && echo "IPP-Garching" [[ "$1" =~ ^nakasvr17.naka.qst.go.jp ]] && echo "JT-60"
- Creating site-config/Makefile.IPP-Garching.SLES-15
Requires JAVA_HOME to be set so the Makefile can find JNI headers
Code Block language bash theme Midnight make -j4 install TAG_DD=3.24.0 TAG_AL=4.2.0 JAVA_HOME=${JDK_HOME}
Because the target install dir (/afs/.ipp/...) is not the final one (/afs/ipp/...) the generated module should be patched
Code Block language bash theme Midnight - set imas_home /afs/.ipp/tok/soft/imas + set imas_home /afs/ipp/tok/soft/imas