# Installing preCICE error

**URL:** <https://precice.discourse.group/t/installing-precice-error/1280>\
**Category:** Installing preCICE\
**Tags:** openfoam, adapters, configuration, fsi\
**Created:** [January 22, 2023, 6:58am UTC](https://precice.discourse.group/t/installing-precice-error/1280 "2023-01-22T06:58:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![iraza](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@iraza](https://precice.discourse.group/u/iraza)\
**Post date:** [January 22, 2023, 6:58am UTC](https://precice.discourse.group/t/installing-precice-error/1280/1 "2023-01-22T06:58:13Z")

</div>

Hello,  
I am trying to install preCICE with openfoam 2012. However, I am getting the following error  
Building the OpenFOAM-preCICE adapter…  
Allwmake: line 35: pkg-config: command not found

How this error can be resolved?  
If possible, please post a link for the installion of preCICE and CalCulix.  
Regards,

---

<div class="post-metadata">

**Author:** ![IshaanDesai](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ishaandesai/32/1048_2.png) [@IshaanDesai](https://precice.discourse.group/u/IshaanDesai)\
**Post date:** [January 23, 2023, 7:26am UTC](https://precice.discourse.group/t/installing-precice-error/1280/2 "2023-01-23T07:26:40Z")

</div>

Hi @iraza

It looks like you do not have the tool [pkg-config](https://gitlab.freedesktop.org/pkg-config/pkg-config) installed on your machine. Can you install it and try again?

---

<div class="post-metadata">

**Author:** ![iraza](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@iraza](https://precice.discourse.group/u/iraza)\
**Post date:** [January 24, 2023, 12:02am UTC](https://precice.discourse.group/t/installing-precice-error/1280/3 "2023-01-24T00:02:10Z")

</div>

Hi Ishaan,  
Thanks for your response. I installed pkg-config and tried to run the command “Allwmake” but encountered the following error.

 ![Error](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/6/6f9d4797a42ab0d509098f86f02d9e1fbbba562e.jpeg)

How this can be removed?  
Regards

---

<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 24, 2023, 12:41pm UTC](https://precice.discourse.group/t/installing-precice-error/1280/4 "2023-01-24T12:41:10Z")

</div>

@iraza this looks like a file permission issue to me. Can you create files in `/home/iraza/OpenFOAM/iraza-v2012/applications/openfoam-adapter_v1.0.0_OpenFOAM1812-v2012`?

By the way, you could probably upgrade to the latest adapter version (v1.2.1), it also works with OpenFOAM v2012. But the version is not related to this issue.

---

<div class="post-metadata">

**Author:** ![iraza](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@iraza](https://precice.discourse.group/u/iraza)\
**Post date:** [January 25, 2023, 6:02am UTC](https://precice.discourse.group/t/installing-precice-error/1280/5 "2023-01-25T06:02:40Z")

</div>

Hi,

I have installed preCICE and Calculix and trying to run turek-hron-fsi3 in two terminals. However, encountering errors attached in the pictures.

How these can be removed…  
Regards

 ![delii](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/2/28bf79ebd8aecb9e4fca8f0cb5616bc38407962d.jpeg)  
 ![err](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/0/07aeef694cc0a5fc284cc6bb71ec820f4710022b.jpeg)

---

<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 25, 2023, 12:35pm UTC](https://precice.discourse.group/t/installing-precice-error/1280/6 "2023-01-25T12:35:57Z")

</div>

These are two issues.

For the first one (`solid-dealii`): have you built the solver before running it? Follow the instructions in the `../README.md`.

For the second one (`fluid-openfoam`): have you installed groovyBC? Also for this one, see the instructions in the `../README.md`.

---

<div class="post-metadata">

**Author:** ![iraza](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@iraza](https://precice.discourse.group/u/iraza)\
**Post date:** [January 26, 2023, 5:50am UTC](https://precice.discourse.group/t/installing-precice-error/1280/7 "2023-01-26T05:50:40Z")

</div>

Hi Makis,

There is a hint about nonlinear solver in the instructions but I am unable to find it. Where can I find?

In addition, how can install groovyBC? I read the instructions, however, I could not get it.

Regards

---

<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 27, 2023, 7:53am UTC](https://precice.discourse.group/t/installing-precice-error/1280/8 "2023-01-27T07:53:57Z")

</div>

> [@iraza](#):
>
> There is a hint about nonlinear solver in the instructions but I am unable to find it. Where can I find?

I think this is just outdated documentation, you just need the `elasticity` binary. @DavidSCN how can we improve the documentation?

> [@iraza](#):
>
> In addition, how can install groovyBC? I read the instructions, however, I could not get it.

That’s a bit tricky… You need to [install swak4Foam](https://openfoamwiki.net/index.php/Contrib/swak4Foam). To copy that page (future reader: please check for updates):

```bash
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam
cd swak4Foam
./AllwmakeAll

```

This will take a while, as it builds more things than groovyBC, and it may even fail to build everything. It is fine if you get `libgroovybc.so` (or similar) when you execute `ls $FOAM_USER_LIBBIN`.

If by any chance you are using Ubuntu 20.04 and OpenFOAM v2206, you could also get the pre-built binaries from here: [https://github.com/precice/vm/tree/develop/provisioning/prebuilt/swak4Foam](https://github.com/precice/vm/tree/develop/provisioning/prebuilt/swak4Foam)

We have built those to save time when preparing the [preCICE demo virtual machine](https://precice.org/installation-vm.html), so they are 100% unofficial.

---

<div class="post-metadata">

**Author:** ![DavidSCN](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DavidSCN](https://precice.discourse.group/u/DavidSCN)\
**Post date:** [January 27, 2023, 8:38am UTC](https://precice.discourse.group/t/installing-precice-error/1280/9 "2023-01-27T08:38:10Z")

</div>

> I think this is just outdated documentation, you just need the `elasticity` binary. @DavidSCN how can we improve the documentation?

I guess I have to remove all these ‘copy executable’ statements in the tutorials and add something in the adapter documentation. The run script, however, tells the truth here.

---

<div class="post-metadata">

**Author:** ![iraza](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@iraza](https://precice.discourse.group/u/iraza)\
**Post date:** [February 1, 2023, 8:39pm UTC](https://precice.discourse.group/t/installing-precice-error/1280/10 "2023-02-01T20:39:23Z")

</div>

Hi,  
Thank you for your response, I re-do all the installation of openfoam, precice and openfoam-adapter. Upon installing openfoam-adapter and running the command **./Allwmake** , I got the error that can be seen in the attached picture.

 ![allwmake](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/4/439e8cc16c1493d0ef2452325a2e7d59a079bf90.jpeg)

I wanted to run the quickstart tutorial case just to feel the precice working, however, encountered by the following error upon running the command **cmake . && make**

 ![cmake](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/e/e928728b9769de16d6f8550d0bf116566b480baf.jpeg)

It seems to me that I used all the commands to install mentioned material in the quickstart guide instead of using commands for openfoam as I am already using openfoam-2012. However, encountered those errors. How these errors can be encountered.

Regards

---

<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:** [February 3, 2023, 8:39am UTC](https://precice.discourse.group/t/installing-precice-error/1280/11 "2023-02-03T08:39:43Z")

</div>

This can be one or multiple issues.

What definitely is an issue is the one reported in the second screenshot. This has nothing to do with the adapter and potentially little to do with OpenFOAM itself. Have you built OpenFOAM from source? If yes, did you maybe upgrade your system in the meantime? It looks like the library `libjsoncpp.so.1` is not linking correctly to `libstdc++`. I am not sure where this comes from, but probably there is some version mixup involved.

As for the first screenshot, could you please attach the files mentioned there? Maybe the same issue is reported there as well.

---

<div class="post-metadata">

**Author:** ![lvkai](https://avatars.discourse-cdn.com/v4/letter/l/a87d85/32.png) [@lvkai](https://precice.discourse.group/u/lvkai)\
**Post date:** [May 25, 2023, 1:36pm UTC](https://precice.discourse.group/t/installing-precice-error/1280/12 "2023-05-25T13:36:00Z")

</div>

When I make the CalculiX adapter，it appers some errors than I cant resolve it.

libspooles.so: undefined reference to `MPI\_Attr\_get’

could you five me some suggestion? thank you.
