# Issues with Quickstart rigid body solver building

**URL:** <https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, adapters, fsi\
**Created:** [April 30, 2021, 9:26pm UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578 "2021-04-30T21:26:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://precice.discourse.group/u/Axel)\
**Post date:** [April 30, 2021, 9:26pm UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578/1 "2021-04-30T21:26:03Z")

</div>

Hello,  
Currently I’m working with OpenFOAM 20v06 and I am installing the Precice-adapter package just to have some errors.  
I have uploaded the log\_error txt file having the message error.

With this error, I can assess the quickstart tutorial.  
Please how can I solve such issue?[Log\_Error.txt](https://precice.discourse.group/uploads/short-url/hdGCMU3z4LO63uDXB1tqlGFAgUi.txt) (31.1 KB)

---

<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:** [May 1, 2021, 5:53am UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578/2 "2021-05-01T05:53:00Z")

</div>

Hi Axel,

I understand from the log file that you have issues with the Qiuckstart tutorial when trying to build the rigit body solver. First error:

```
[50%] Linking CXX executable rigid_body_solver
/usr/bin/ld: warning: libboost_filesystem.so.1.71.0, needed by /usr/lib/x86_64-linux-gnu/libprecice.so.2.2.0, not found (try using -rpath or -rpath-link)

```

Did you build preCICE from source? How did you install Boost? It is probably that Boost is not discoverable in your system (e.g. it is not in the `LD_LIBRARY_PATH`: [Building from source - Dependencies | preCICE - The Coupling Library](https://precice.org/installation-source-dependencies.html#build-boost-from-source)).

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://precice.discourse.group/u/Axel)\
**Post date:** [May 1, 2021, 11:00am UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578/3 "2021-05-01T11:00:35Z")

</div>

Hi Makish,  
I realized that I did not install Boost.  
I just successfully installed Boost. I guess.  
But when I opened a new terminal, I have this message error :  
bash: /home/user/.bashrc: line 126: syntax error near unexpected token `newline' bash: /home/user/.bashrc: line 126: `export BOOST\_ROOT=’  
You can more details in the image.

 ![Screenshot from 2021-05-01 11-01-46](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/4b88661ed582227e0cbf0bb46ee15525bbe82a84.png)

Please help.  
The error is persisting I and can’t run the quick start tutorial.

Best regards,  
Axel

---

<div class="post-metadata">

**Author:** ![ajaust](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ajaust/32/160_2.png) [@ajaust](https://precice.discourse.group/u/ajaust)\
**Post date:** [May 1, 2021, 11:59am UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578/4 "2021-05-01T11:59:57Z")

</div>

How did you install boost?

It seems like you have edited the `.bashrc` file in your home directory. Open it go to line 126 and fix it. It seems that you want to set `BOOST_ROOT` to some meaningful value (in this case a meaningful path). It seems that it is set to `<BOOST>` which is not meaningful. It should be something like `export BOOST_ROOT=/home/user/boost-1.72.0/` (just an example).

If you have installed Boost via the package manager of your Linux, you normally do not have to set `BOOST_ROOT` manually. In this case you should remove the problematic line from your `.bashrc`.

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://precice.discourse.group/u/Axel)\
**Post date:** [May 1, 2021, 2:32pm UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578/5 "2021-05-01T14:32:32Z")

</div>

Hi again Makish,

I just built from source the dependencies Boost, Eigen, PetSc, etc…  
untill now, this is the error I am still receiving in the logfile.

What could be the source of this error?

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://precice.discourse.group/u/Axel)\
**Post date:** [May 1, 2021, 2:43pm UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578/6 "2021-05-01T14:43:13Z")

</div>

Hi Ajaust,  
I have followed the steps given on the website : [Building from source - Dependencies | preCICE - The Coupling Library](https://precice.org/installation-source-dependencies.html#petsc), point 5 (under Build boost from source).

I have removed the line export BOOST\_ROOT= and that message error disappear from the terminal.  
However, when running the Quickstart tut, still having some errors as shown in the error\_log file attached.  
[error2.txt](https://precice.discourse.group/uploads/short-url/9ezlU7HtvgydKxE8RZoHZBfdJgQ.txt) (31.1 KB)

Please what could caused this?

Best regards,  
Axel

---

<div class="post-metadata">

**Author:** ![ajaust](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ajaust/32/160_2.png) [@ajaust](https://precice.discourse.group/u/ajaust)\
**Post date:** [May 1, 2021, 2:54pm UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578/7 "2021-05-01T14:54:47Z")

</div>

Hi,

if you have followed the guide and installed Boost from source, you will need the line ` export BOOST_ROOT=<prefix>` in your `.bashrc`. However, you have to replace the `<prefix>` part by the system path to your Boost installation.

This means, you need to put the path in that you have also used when installing boost using the command

```
./bootstrap.sh --with-libraries=log,thread,system,filesystem,program_options,test --prefix=<prefix>

```

Which Linux are you using? It might be easier for you to use the precompiled preCICE package and the precompiled dependencies.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [July 14, 2021, 8:24am UTC](https://precice.discourse.group/t/issues-with-quickstart-rigid-body-solver-building/578/8 "2021-07-14T08:24:36Z")

</div>

Closed on July 14, 2021, 8:24am UTC

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