BuildTools
Different version of some build tools are available on the platform gateway. The default version of maven is 3.6.3 and the default version gcc is 11.5.0. Newer version are available using Software Collections.
Maven
#print the current version of maven
[flalanne@lsd-gateway ~]$ mvn --version
Apache Maven 3.6.3 (Red Hat 3.6.3-22)
Maven home: /usr/share/maven
Java version: 17.0.18, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-17-openjdk-17.0.18.0.8-1.el9.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.14.0-503.14.1.el9_5.x86_64", arch: "amd64", family: "unix"
GCC/G++
#print the current version of gcc
$> gcc --version
gcc --version
gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CMake
Cmake is available in version 3.26.5on the gateway:
NodeJs
Nodejs(command node with version v24.14.0) and npm(version 11.9.0) are available on the gateway.
Conda
Conda (provided by miniforge is available as /mnt/shared/public/miniforge/bin/conda to ease the creating and management of python environments.
/mnt/shared/public/miniforge/bin/conda init bash will setup your bash environment for conda. This will allow you to use conda activate <environement> and conda deactivate <environment> to switch between environements.
It will also overwrite your initial python environment to conda base environment (/mnt/shared/public/miniforge/bin/python) unless you use command conda config --set auto_activate_base false to change this behavior.
Some useful conda commands:
#create an environement in <path/to/environment> with python version 3.11 and numpy
$>conda create -p <path/to/environment> python=3.11 numpy
#activating an environment : this will prepend your shell prompt with '(environment)'
$>conda activate <path/to/environment>
#deactivating an environment : this will remove the prepended '(environment)' from your shell prompt
$>conda deactivate
#creating a new environment by cloning an existing one
$>conda create -p <path/to/new/environment> --clone <path/to/existing/environment>