Skip to content

Commit

Permalink
Added further instructions about relocation
Browse files Browse the repository at this point in the history
  • Loading branch information
pedmon committed Apr 11, 2024
1 parent 7fa39e2 commit ab69f36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documents/Software/Spack.md
Expand Up @@ -53,7 +53,9 @@ packages:
target: [x86_64]
```
### Relocating Spack
Once your Spack environment has been installed it cannot be easily moved. Some of the packages in Spack hardcode the absolute paths into themselves and thus cannot be changed with out rebuilding them.
Once your Spack environment has been installed it cannot be easily moved. Some of the packages in Spack hardcode the absolute paths into themselves and thus cannot be changed with out rebuilding them. As such simply copying the Spack installation will not actually move the Spack installation.

The easiest way to move a space install if you need to keep the exact same stack of software is to first create a [spack environment](https://spack-tutorial.readthedocs.io/en/latest/tutorial_environments.html) with all the software you need. Once you have that you can export the [environment](https://spack-tutorial.readthedocs.io/en/latest/tutorial_environments.html#reproducing-builds) similar to how you would for conda environments. After that you can then use that environment file export to rebuild in the new location.

## Available Spack Packages

Expand Down

0 comments on commit ab69f36

Please sign in to comment.