Skip to content

Latest commit

 

History

History
128 lines (106 loc) · 3.96 KB

installation.md

File metadata and controls

128 lines (106 loc) · 3.96 KB

II. Installation

II.1. Define a spack environment for a FairSoft release

spack env create jun19 env/jun19/sim/spack.yaml

jun19 can be any name you choose. Verify

$ spack env list
==> 1 environments
    jun19

II.2. Activate the Spack environment

In order to work with the previously defined environment, it needs to be activated in any given shell instance

spack env activate jun19

Verify

$ spack env status
==> In environment jun19

You may also activate an environment with -p which generates a prefix to your prompt as long as the environment is active

$ spack env activate -p jun19
[jun19] $

To deactive the active environment, run

spack env deactivate

or

despacktivate

II.3. Compile and install the packages defined in the active spack environment

Inspect the active environment

$ spack env activate -p jun19
[jun19] $ spack find
==> In environment jun19
==> Root specs
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected] +sim
geant3@2-7_fairsoft
[email protected] ~clhep~data~motif~opengl~qt+threads~vecgeom~x11
geant4-vmc@4-0-p1
[email protected]
[email protected]  length=CM momentum=GEV
pcre +jit
pythia6@428-alice1
pythia8@8240
[email protected] +fortran+gdml+http+memstat+pythia6+pythia8~python~tmva+vc~vdt
vgm@4-5

==> 0 installed packages

The jun19 FairSoft release pins certain package version and build variants that have been carefully chosen to work well together. To install the packages in the environment run

[jun19] $ spack install

This step usually takes a while - time for a coffee break ☕.

II.4. Verify the installation

[jun19] $ spack find
==> In environment jun19
==> Root specs
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected] +sim
geant3@2-7_fairsoft
[email protected] ~clhep~data~motif~opengl~qt+threads~vecgeom~x11
geant4-vmc@4-0-p1
[email protected]
[email protected]  length=CM momentum=GEV
pcre +jit
pythia6@428-alice1
pythia8@8240
[email protected] +fortran+gdml+http+memstat+pythia6+pythia8~python~tmva+vc~vdt
vgm@4-5

==> 87 installed packages
-- linux-fedora31-skylake / [email protected] ---------------------------
[email protected]      [email protected]         [email protected]      [email protected]        [email protected]
[email protected]       [email protected]  [email protected]         [email protected]       [email protected]
[email protected]        [email protected]                [email protected]          [email protected]       [email protected]
[email protected]       [email protected]   [email protected]  [email protected]   [email protected]
[email protected]        [email protected]      [email protected]        [email protected]          [email protected]
[email protected]            [email protected]           [email protected]          [email protected]           [email protected]
[email protected]        [email protected]            [email protected]         [email protected]         [email protected]
[email protected]   geant3@2-7_fairsoft      [email protected]   [email protected]      vgm@4-5
[email protected]       [email protected]         [email protected]         [email protected]     [email protected]
[email protected]    [email protected]        [email protected]  [email protected]       [email protected]
[email protected]    geant4-vmc@4-0-p1        [email protected]           [email protected]         [email protected]
[email protected]  [email protected]           [email protected]      [email protected]        [email protected]
[email protected]    [email protected]                [email protected]         [email protected]      [email protected]
[email protected]         [email protected]             [email protected]          [email protected]      [email protected]
[email protected]        [email protected]         [email protected]          [email protected]           [email protected]
[email protected]   [email protected]                  [email protected]           [email protected]
[email protected]         [email protected]            [email protected]        pythia6@428-alice1
[email protected]          [email protected]              [email protected]         pythia8@8240