Questions tagged [spack]
Questions related to the Spack package manager
31
questions
0
votes
0
answers
11
views
Installing Spack on HPC System fails: <unknown file>
I'm following this tutorial to try and install Spack on a large cluster running CentOS 7.
At the bootstrapping step spack spec zlib I get an error:
==> Error: <unknown file>:1: [ordereddict([(...
1
vote
0
answers
31
views
How to apply a patch to a spack package?
spack install gzip fails.
> spack install gzip
==> Installing gzip-1.12-hjaryhgrkevrdht64fqblm3pnyyd26ep [1/1]
==> No binary for gzip-1.12-hjaryhgrkevrdht64fqblm3pnyyd26ep found: installing ...
0
votes
1
answer
98
views
Spack installation of OpenFOAM does not install utility and solver programs
I am installing OpenFOAM with spack. The Spack is configured as follows:
cat << EOF >> $SPACK_ROOT/etc/spack/packages.yaml
packages:
slurm:
externals:
- spec: slurm@22....
0
votes
1
answer
47
views
why does spack external find fail to find perl?
I am working on free and open-source software for the Earth science community, using spack to install the massive list of dependencies needed for some forecast models.
The goal is that scientists all ...
0
votes
0
answers
35
views
Spack GitLab CI Pipeline - Environment yaml does not have "gitlab-ci" section
Using example files .gitlab-ci.yml and spack.yaml as in https://spack.readthedocs.io/en/latest/pipelines.html , with this change,
script:
- spack env create ENV
- spack env activate --...
0
votes
1
answer
76
views
Using Spack Containers for Local development using CLion
Spack is set up for the creation of containarize enviorments with all the dependencies.
This is great for github actions, but I will like to make it work for local development on CLion
Here is the ...
0
votes
1
answer
64
views
what package version is installed if I write spack install <package>@master?
I want to install the latest version of a package using spack.
In the spack manual of the corresponding package, there is the heading Versions: master,...
To which version of the package does master ...
0
votes
1
answer
72
views
How to run spack without OpenMP?
The compilation of LLVM with spack ($spack install llvm) fails towards the end with the following error message:
==> Installing llvm-15.0.7-cvmhmn4maer6wxbsjmmxmz7euob5eim6
==> No binary for ...
0
votes
1
answer
112
views
Permission Denied in Accessing Package Within Spack
I am trying to create a Quantum Espresso environment within Spack to run modeling simulations with the package libxc. In the process of creating a QE environment, I am trying to run the code
~/spack/...
1
vote
1
answer
247
views
User-level spack environments
We're setting up spack on our machine, to be used by multiple people (some/most of which will not be in sudo), but all of us are new to spack. Spack is installed at root level so users cannot modify ...
0
votes
1
answer
342
views
Spack failed to install
I am very new to this. I am trying to install PISM on my computer using spack.
I get the following error:
(base) MacBook-Pro-143:~ samchester$ spack install pism ^petsc~metis~hdf5~hypre~superlu-dist
==...
0
votes
1
answer
201
views
Package 'apple-gl' not found when installing gcc via spack
I am trying to install gcc version 12.2.0 (as super user $ sudo su) using SPACK $ spack install [email protected]. Nothing happend but the following error message: ==> Error: Package 'apple-gl' not found
...
0
votes
1
answer
1k
views
Spack Installation Errors
I am trying to install Spack on an HPC by following the tutorial:
Installing Spack
I can clone it from GitHub, but when I try to load the environment by inputting:
. share/spack/setup-env.sh
I get ...
0
votes
0
answers
24
views
How can I call aliases that modify my current shell environment from within a python script? [duplicate]
I would like to load a module from within a python script. I am using a custom manager called spack which has a spack load <module> functionality that is similar to the regular module load ...
0
votes
1
answer
296
views
Spack - ERROR: Kernel configuration is invalid
I'm trying to install packages with Spack following the instruction on how to install OpenMPI.
When I install packages like xpmem, I get a first error saying ERROR: Kernel configuration is invalid. ...
1
vote
1
answer
259
views
How to concretize spack environnements on a machine without internet access?
I want to use spack to install various packages and compile on a supercomputer that for all intents and purposes, doesn't have direct access to the internet. I can send files to this machine, like the ...
2
votes
1
answer
1k
views
How to change where spack installs package?
Is there a way to have spack install software at a location of my choosing?
For example, if I do:
spack install netcdf-c
Then spack will install netcdf-c in a directory like:
/home/ed/spack/opt/spack/...
0
votes
1
answer
364
views
Why spack isn't adding external packages to environment filesystem views?
Suppose I am in my_env:
spack activate my_env
Also suppose that I have external packages, e.g. a system-installed openmpi.
And then I generate filesystem views:
spack env view regenerate
Then I get ...
1
vote
2
answers
2k
views
How can I make the C++ compiler support template for STL?
I am trying to install hpctoolkit using Spack. In order to do that, I executed :
git clone https://github.com/spack/spack.git
cd spack/share/spack
source setup-env.sh
spack fetch -D hpctoolkit
spack ...
0
votes
1
answer
1k
views
Change version of gcc which does not support compiling C++ programs using the compilers.yaml file
I am trying to install hpctoolkit using spack. In order to do that, I executed :
git clone https://github.com/spack/spack.git
cd spack/share/spack
source setup-env.sh
spack fetch -D hpctoolkit
spack ...
1
vote
0
answers
236
views
Setting the MODULE_PATH variable for default env of spack
Lately, the mechanism used by Spack to manage the modules (I refer to the Environment Modules and to LMod) changed a little bit to allow a better integration with the spack environments (see pull ...
0
votes
1
answer
124
views
Spack info.print_text_info
AttributeError: 'str' object has no attribute 'build_system_class'
I am getting this error when attempting to run this code. Does anyone know what is wrong?
import spack.cmd.info
import sys
pkg = sys....
1
vote
1
answer
254
views
I am unable to get "spack mirror add" to work
I decided I wanted to install [email protected] with spack, so I ran the command spack --insecure install [email protected]. This attempts to download https://ftpmirror.gnu.org/gcc/gcc-10.2/gcc-10.2.tar.xz, which no ...
0
votes
1
answer
399
views
Conflicts with variants in installed packages
With spack, I am trying to install a package using a previous install of [email protected].
And I get the following error during concretization:
Error: trying to set variant "wrapper-rpath" in ...
2
votes
1
answer
131
views
Is it possible to use my own Python interpreter with Conda's OpenCV python library?
I work on a Python project that in one place callse Julia's code, and in other uses OpenCV.
Unfortunately, pyJulia prefers Python interpreter to be dynamically linked to the libpython. (I know I can ...
3
votes
1
answer
1k
views
How to change where Spack stores the spack-stage directory?
Spack by default writes (on my system) into a directory spack-stage inside /tmp/. This directory can get full when building something big (e.g. GCC itself), at least in the shared system I am using:
...
0
votes
1
answer
129
views
Add mark to Terminal in background using AppleScript
The macOS Terminal has a nice "mark" feature that allows you to jump between prompts using Cmd+Up/Down. I'm trying to insert my own "marks" from inside of a Python script so that I can jump to ...
15
votes
5
answers
27k
views
Could NOT find Protobuf (missing: Protobuf_PROTOC_EXECUTABLE)
When I am doing a cmake in the build directory of the project I am getting this error. Initially I got a
protobuf-config.cmake not found
error. So I gave a path of the protobuf-config.cmake file ...
1
vote
1
answer
851
views
Insalling spack package with external MPI interface
I am trying to install a spack package in a cluster, and if I use
spack install namd
Spack download and install its own MPI interface. Since it is a cluster, I want to take advantage of the native ...
4
votes
3
answers
6k
views
cmake can't find default MPI install on stock CentOS 7?
On a vanilla CentOS 7 box, I have OpenMPI installed (stock version), and did:
module load mpi
to load the MPI stuff into the environment. Under this setting, cmake (I tried both 2.8 and latest 3.12) ...
0
votes
1
answer
197
views
spack expected <commit> but got <commit>
I want to install nalu with spack. My install failed with a cryptic error message:
$ spack clean nalu
==> Cleaning build stage [nalu@master%[email protected] build_type=RelWithDebInfo ~openfast ...