# \#spack

**URL:** https://precice.discourse.group/tag/spack/14.md

[Latest](https://precice.discourse.group/latest.md) · [Categories](https://precice.discourse.group/categories.md) · [Tags](https://precice.discourse.group/tags.md)

---

## [Failing to install precice using spack](https://precice.discourse.group/t/failing-to-install-precice-using-spack/2626)

<div class="topic-metadata">

**Author:** [@sekim](https://precice.discourse.group/u/sekim)\
**Replies:** 1\
**Last updated:** [September 22, 2025, 9:57am UTC](https://precice.discourse.group/t/failing-to-install-precice-using-spack/2626 "2025-09-22T09:57:48Z")

</div>

I ran into difficulty while trying to install precice using spack. Please describe your system, and especially: preCICE version 3.2.0 RHEL V7 Spack Dependency versions (especially I followed the instructions, but I k…

---

## [Error with OpenFOAM adapter: undefined symbol: ompi\_instance\_count](https://precice.discourse.group/t/error-with-openfoam-adapter-undefined-symbol-ompi-instance-count/2435)

<div class="topic-metadata">

**Author:** [@Mingfeng](https://precice.discourse.group/u/Mingfeng)\
**Replies:** 1\
**Last updated:** [April 10, 2025, 10:40am UTC](https://precice.discourse.group/t/error-with-openfoam-adapter-undefined-symbol-ompi-instance-count/2435 "2025-04-10T10:40:21Z")

</div>

Hi there, the following errors come out in a cluster: --\> FOAM Warning : From void\* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at lin…

---

## [PreCICE spack installation on HPC fails with python3 related error](https://precice.discourse.group/t/precice-spack-installation-on-hpc-fails-with-python3-related-error/2319)

<div class="topic-metadata">

**Author:** [@Umut](https://precice.discourse.group/u/Umut)\
**Replies:** 3\
**Last updated:** [February 26, 2025, 11:53am UTC](https://precice.discourse.group/t/precice-spack-installation-on-hpc-fails-with-python3-related-error/2319 "2025-02-26T11:53:25Z")

</div>

Dear preCICE Community, I am attempting to install preCICE on an HPC system using Spack, following the guidelines provided on the HPC webpage. However, the installation fails with the following error: \>\> 163 CMake…

---

## [Cannot install pyprecice after installing preCICE using Spack](https://precice.discourse.group/t/cannot-install-pyprecice-after-installing-precice-using-spack/1879)

<div class="topic-metadata">

**Author:** [@steffenger](https://precice.discourse.group/u/steffenger)\
**Replies:** 11\
**Last updated:** [April 18, 2024, 7:32am UTC](https://precice.discourse.group/t/cannot-install-pyprecice-after-installing-precice-using-spack/1879 "2024-04-18T07:32:07Z")

</div>

Hello I try to install preCICE at the HLRS in vulcan cluster with local version of spack and local pip packages. I was wondering if there is a trick i have to do for the installation, since pyprecice is succesfully insta…

---

## [Error:precice-2.5.0-7](https://precice.discourse.group/t/error-precice-2-5-0-7/1467)

<div class="topic-metadata">

**Author:** [@Yiming\_Gan](https://precice.discourse.group/u/Yiming_Gan)\
**Replies:** 1\
**Last updated:** [July 1, 2023, 2:30pm UTC](https://precice.discourse.group/t/error-precice-2-5-0-7/1467 "2023-07-01T14:30:30Z")

</div>

I met this error when installing using spack: Error: precice-2.5.0-7ikjs3kyltdebrwyslln6yxyfocsjfeh: Package was not installed

---

## [Installing preCICE with Spack and HPE MPI](https://precice.discourse.group/t/installing-precice-with-spack-and-hpe-mpi/1246)

<div class="topic-metadata">

**Author:** [@sinah](https://precice.discourse.group/u/sinah)\
**Replies:** 6\
**Last updated:** [December 19, 2022, 12:20pm UTC](https://precice.discourse.group/t/installing-precice-with-spack-and-hpe-mpi/1246 "2022-12-19T12:20:08Z")

</div>

Hi, I am trying to install Precice on our local HPC facility using Spack. The system is HPE so need to use HPE MPI (MPT-2.25) Other details are as follows: Please describe your system, and especially: Precice Versio…

---

## [Installation of preCICE on CRAY using Spack](https://precice.discourse.group/t/installation-of-precice-on-cray-using-spack/551)

<div class="topic-metadata">

**Author:** [@Sangeet\_Sunderroy](https://precice.discourse.group/u/Sangeet_Sunderroy)\
**Replies:** 2\
**Last updated:** [April 18, 2021, 5:46am UTC](https://precice.discourse.group/t/installation-of-precice-on-cray-using-spack/551 "2021-04-18T05:46:51Z")

</div>

preCICE version: 2.2.0 Operating system: CRAY XC-40 Installation method: Spack spack install precice ^boost@1.74.0 %gcc@X.X.X Hello, I am trying to install precice on CRAY using Spack and two packages are encounterin…

---

## [Installing Spack for preCICE](https://precice.discourse.group/t/installing-spack-for-precice/446)

<div class="topic-metadata">

**Author:** [@ArpanS](https://precice.discourse.group/u/ArpanS)\
**Replies:** 1\
**Last updated:** [February 9, 2021, 7:57pm UTC](https://precice.discourse.group/t/installing-spack-for-precice/446 "2021-02-09T19:57:26Z")

</div>

I am trying to install preCICE v2.2.0 on a Linux computer cluster by following the steps outlined in Installing preCICE | preCICE - The Coupling Library As I try to source the setup-env.sh file, I get the following erro…

---

## [Install preCICE with Spack on macOS](https://precice.discourse.group/t/install-precice-with-spack-on-macos/295)

<div class="topic-metadata">

**Author:** [@VickyWei](https://precice.discourse.group/u/VickyWei)\
**Replies:** 5\
**Last updated:** [January 20, 2021, 4:34pm UTC](https://precice.discourse.group/t/install-precice-with-spack-on-macos/295 "2021-01-20T16:34:30Z")

</div>

I’m using macOS Catalina 10.15.5 and trying to install preCICE v2.1.0 with spack. In the 2nd step spack install precice there is an error while installing precice: 1 error found in build log: 108 -- Performing…

---

## [Troubleshooting: Unable to locate a modulefile for '\<package\>'](https://precice.discourse.group/t/troubleshooting-unable-to-locate-a-modulefile-for-package/415)

<div class="topic-metadata">

**Author:** [@Makis](https://precice.discourse.group/u/Makis)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 2:42pm UTC](https://precice.discourse.group/t/troubleshooting-unable-to-locate-a-modulefile-for-package/415 "2021-01-06T14:42:22Z")

</div>

This error might occur after you attempt to load packages for the first time after installing a module manager. Often times this is simply due to Spack holding an outdated module path and can be fixed by again sourcing t…

---

## [Troubleshooting: Error: Conflicts in concretized spec](https://precice.discourse.group/t/troubleshooting-error-conflicts-in-concretized-spec/414)

<div class="topic-metadata">

**Author:** [@Makis](https://precice.discourse.group/u/Makis)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 2:39pm UTC](https://precice.discourse.group/t/troubleshooting-error-conflicts-in-concretized-spec/414 "2021-01-06T14:39:42Z")

</div>

There might be conflicts between dependencies. If conflicts are detected, Spack prints a large error message starting with Error: Conflicts in concretized spec when attempting to execute spack install or spack spec. This…

---

## [Troubleshooting: preCICE from Spack freezing](https://precice.discourse.group/t/troubleshooting-precice-from-spack-freezing/413)

<div class="topic-metadata">

**Author:** [@Makis](https://precice.discourse.group/u/Makis)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 2:36pm UTC](https://precice.discourse.group/t/troubleshooting-precice-from-spack-freezing/413 "2021-01-06T14:36:29Z")

</div>

If you build preCICE with a different version/implementation of MPI than you used for your solver, you may encounter unexpected behavior early at runtime, e.g. during configuration. In that case, make sure to build preCI…

---

## [Troubleshooting: preCICE from Spack and Boost-related errors](https://precice.discourse.group/t/troubleshooting-precice-from-spack-and-boost-related-errors/412)

<div class="topic-metadata">

**Author:** [@Makis](https://precice.discourse.group/u/Makis)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 2:34pm UTC](https://precice.discourse.group/t/troubleshooting-precice-from-spack-and-boost-related-errors/412 "2021-01-06T14:34:12Z")

</div>

By default, Spack will use the latest version of Boost. As Boost changes frequently, it is possible to get an error either because of a change that we have not yet incorporated, or because your compiler is too old. In th…

---

## [Troubleshooting: Mixing up dependencies from system and Spack](https://precice.discourse.group/t/troubleshooting-mixing-up-dependencies-from-system-and-spack/411)

<div class="topic-metadata">

**Author:** [@Makis](https://precice.discourse.group/u/Makis)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 2:30pm UTC](https://precice.discourse.group/t/troubleshooting-mixing-up-dependencies-from-system-and-spack/411 "2021-01-06T14:30:19Z")

</div>

In case you see that Spack reports an error in which points to a non-spack directory, maybe you are forcing your compiler to look at places it shouldn’t. Please avoid setting environment variables such as CPLUS\_INCLUDE\_P…

---

## [Troubleshooting: Spack cannot find preCICE](https://precice.discourse.group/t/troubleshooting-spack-cannot-find-precice/410)

<div class="topic-metadata">

**Author:** [@Makis](https://precice.discourse.group/u/Makis)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 2:27pm UTC](https://precice.discourse.group/t/troubleshooting-spack-cannot-find-precice/410 "2021-01-06T14:27:26Z")

</div>

(question moved from the preCICE Wiki / old documentation) If you use an old Spack version, you may run into the following error: ==\> Error: Package precice not found.

---

## [Issues with spack on centos 7](https://precice.discourse.group/t/issues-with-spack-on-centos-7/397)

<div class="topic-metadata">

**Author:** [@Titan](https://precice.discourse.group/u/Titan)\
**Replies:** 3\
**Last updated:** [December 18, 2020, 3:51pm UTC](https://precice.discourse.group/t/issues-with-spack-on-centos-7/397 "2020-12-18T15:51:55Z")

</div>

Hi, I was trying to install precice using spack on centOS7. This is a better option as I don’t have sudo rights on this machine. I get following error when I use spack install precice ==\> Warning: gcc@4.8.5 cannot buil…

---

## [Python interface with Spack](https://precice.discourse.group/t/python-interface-with-spack/86)

<div class="topic-metadata">

**Author:** [@mfolkersma](https://precice.discourse.group/u/mfolkersma)\
**Replies:** 1\
**Last updated:** [November 11, 2019, 3:27pm UTC](https://precice.discourse.group/t/python-interface-with-spack/86 "2019-11-11T15:27:30Z")

</div>

Hi, I installed preCICE on a cluster using Spack with python=True flag. How can I import the preCICE interface in Python? Folders src/precice/bindings/python\_future/ and src/precice/bindings/python/ do not contain any P…
