# Troubleshooting: Mixing up dependencies from system and Spack

**URL:** https://precice.discourse.group/t/troubleshooting-mixing-up-dependencies-from-system-and-spack/411
**Category:** Installing preCICE
**Tags:** spack
**Created:** [January 6, 2021, 2:29pm UTC](https://precice.discourse.group/t/troubleshooting-mixing-up-dependencies-from-system-and-spack/411 "2021-01-06T14:29:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)
#### Post date: [January 6, 2021, 2:29pm UTC](https://precice.discourse.group/t/troubleshooting-mixing-up-dependencies-from-system-and-spack/411/1 "2021-01-06T14:29:14Z")

</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_PATH`, `LD_LIBRARY_PATH`, or `LIBRARY_PATH` when using Spack. This can particularly lead to problems if you have a (broken) installation of a requested dependency in that path.

Keep in mind that, by default, Spack will use the default compiler of your system.

---

<div class="post-metadata">

### Author: ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)
#### Post date: [January 6, 2021, 2:30pm UTC](https://precice.discourse.group/t/troubleshooting-mixing-up-dependencies-from-system-and-spack/411/2 "2021-01-06T14:30:19Z")

</div>

(this topic was only meant to move information here from the old preCICE wiki)

---

<div class="post-metadata">

### Author: ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)
#### Post date: [January 9, 2021, 2:30pm UTC](https://precice.discourse.group/t/troubleshooting-mixing-up-dependencies-from-system-and-spack/411/3 "2021-01-09T14:30:22Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
