Spack Installation

Spack may already be available but as a shared read-only instance. In this case, a user-local Spack instance can be cloned with:

spack clone ~/spack

If spack is not available yet, you can follow the installation instructions at https://spack.readthedocs.io/en/latest/getting_started.html#installation

In both cases, you will need to initialise the new Spack instance for use.

. ~/spack/share/spack/setup-env.sh

To get this applied automatically at login for future sessions, add the above line to the bottom of your ~/.bashrc file.

You are now using your own personal Spack instance.

On systems with a shared Spack install, your instance by default will be chained to the shared Spack (configured in ~/.spack/upstreams.yaml) so you can benefit from using the shared packages already installed on the system.