Skip to content
Marc Mengel edited this page Mar 9, 2023 · 10 revisions

Spack is an excellent package manager with excellent facilities for building and installing packages.

However, for building software that is going to run in a Grid environment, encourage use of binary package distribution, and to assist our users who are migrating from UPS packaging, we have several recommendations and tools, included in this repository.

Getting Started

The current recommendation is to use our bootstrap script to install spack, for one of our releases:

  • make an empty directory where you want to place your spack instance
  • cd there
  • fetch a release branch of our bootstrap script with wget or curl, one of
  • run "bootstrap.sh"
  • Get a cup of coffee or your favorite beverage
  • source setup-env.sh

Sample session:

   $ wget https://github.com/FNALssi/spack-infrastructure/raw/v2.19.0_release/bin/bootstrap
   $ bash ./bootstrap
   Putting detail log in /tmp/bootstrap32512.log
   Cloning FNALssi spack-infrastructure repository          
   Setting up spack         
   Finding compilers           
   $ source setup-env.sh
   $ spack find
   -- linux-scientific7-x86_64 / [email protected] -------------------------
   [email protected]

   -- linux-scientific7-x86_64_v2 / [email protected] ----------------------
   [email protected]
    ==> 2 installed packages

   $ spack buildcache list -al gcc
   ==> 3 cached builds.
   -- linux-scientific7-x86_64 / [email protected] -------------------------
   3qoagel [email protected]  rds64a3 [email protected]  thfxg6n [email protected]

   $ spack buildcache install -oa /thfxg6n 
   ...

Clone this wiki locally