These packages must be available for the following steps
-
gcc10
-
gcc10-c++
-
gcc10-fortran
-
python3
# select a directory where to install (absolute path)
export SOFTWARE_DIR=<software_dir>
cd $SOFTWARE_DIR
git clone https://github.com/FemusPlatform/NumericPlatform
Select a directory where to install spack
and cd
to it
cd $SOFTWARE_DIR
# clone the spack repository
git clone -c feature.manyFiles=true https://github.com/capitalaslash/spack.git -b v0.20_femus
# set up bashrc for spack automatic activation
echo "source $SOFTWARE_DIR/spack/share/spack/setup-env.sh" | tee -a ~/.bashrc
# set up spack for the current shell
source $SOFTWARE_DIR/spack/share/spack/setup-env.sh
Currently the upstream version of spack
does not include all the required versions
that have been included in a custom fork.
cd $SOFTWARE_DIR/NumericPlatform
./spack_setup.sh
In order to use the packages installed via spack
, it is sufficient to activate an
environment
spack env activate $SOFTWARE_DIR/NumericPlatform/spack_env
The versions of the various packages and compiler can be set editing the file
spack_env/spack.yaml
.
After editing the file, uninstall old versions
spack uninstall <package>@<old_version>
and then run
cd $SOFTWARE_DIR/NumericPlatform
./spack_setup.sh
This guide does not install the salome
platform, it can be installed separately
using a pre-compiled version. An example is given in the script salome_setup.sh
.