# Problem with installation of openfoam-adapter

**URL:** <https://precice.discourse.group/t/problem-with-installation-of-openfoam-adapter/419>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, adapters\
**Created:** [January 12, 2021, 6:50am UTC](https://precice.discourse.group/t/problem-with-installation-of-openfoam-adapter/419 "2021-01-12T06:50:06Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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 13, 2021, 9:55am UTC](https://precice.discourse.group/t/problem-with-installation-of-openfoam-adapter/419/13 "2021-01-13T09:55:09Z")

</div>

> [@littlecucumer](#):
>
> I run a tutorial (/OpenFOAM/OpenFOAM-5.x/tutorials/incompressible/simpleFoam/motorBike) in parallel with OpenFOAM. The result in paraview looks good. The parallel simulation is ok, i think.

Then OpenFOAM itself works fine. You could then try building any function object. It will be installed to your `$FOAM_USER_LIBBIN` directory. You could then run `ldd $FOAM_USER_LIBBIN/your_function_object.so` and see if you get similar errors. But I am not sure if it is worth the effort, it will not help you fix the problem.

> [@littlecucumer](#):
>
> I built OpenFAOM and preCICE with diffferent versions of boost. Is that the cause of the error?

Different version of Boost is fine. The only important point is that OpenFOAM and preCICE link to the same MPI.

> [@littlecucumer](#):
>
> Should i switch my system to Ubuntu or build them by SPACK?

preCICE works with any Linux system, Ubuntu is just easier to set everything up, because it is more widespread and many projects (including OpenFOAM and preCICE) provide binary packages to install.

Spack simply makes it easy to build software when you don’t have all the dependencies you need. I would recommend giving it a try, but you should then either also build OpenFOAM with Spack (with the same MPI version), or tell Spack to use the same MPI for preCICE, as the one used for OpenFOAM. It can definitely get complicated.

By the way, CentOS provides an `mpi-selector`, which lets you select your MPI installation. Are you aware of this?

---

_[View the full topic](https://precice.discourse.group/t/problem-with-installation-of-openfoam-adapter/419)._
