# Installing the CalculiX adapter via the Debian package for Ubuntu 20.04

**URL:** <https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069>\
**Category:** Installing preCICE\
**Tags:** adapters, calculix, fsi\
**Created:** [August 17, 2024, 3:57pm UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069 "2024-08-17T15:57:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@Jimmy](https://precice.discourse.group/u/Jimmy)\
**Post date:** [August 17, 2024, 3:57pm UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/1 "2024-08-17T15:57:05Z")

</div>

Hi, everyone.  
Today I plan to upgrade preCICE to version 3.0. I reinstalled calculix2.20, but after the installation, the following error message appeared when I use the ‘ccx\_preCICE’ test :

> ccx\_preCICE: error while loading shared libraries: libyaml-cpp.so.0.7: cannot open shared object file: No such file or directory  
> ![image](https://global.discourse-cdn.com/free1/uploads/precice/optimized/2X/0/0ca9e09916ffb21322c3586c47315a4f5e737fa8_2_690x28.png)

At the same time, I saw a post in the forum: [Libyaml-cpp.so.0.7: cannot open shared object file: No such file or directory - Installing preCICE - preCICE Forum on Discourse](https://precice.discourse.group/t/libyaml-cpp-so-0-7-cannot-open-shared-object-file-no-such-file-or-directory/1525).

I also tried using 'sudo apt install ./calculix-precice3\_2.20.1-2\_amd64\_focal.deb’to install. The result is:

 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/a/a68fe4be430facb439dc6cde25540aab3f140ea5.png)

Then I remove the calculix-precice3:

 ![remove](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/6/650f1e4fee8e5b0f6c498a7ed54b19fe9f272aae.png)  
and reinstall it:  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/b/b9bcc8f0f8ba68c4d3c4a4257dc08bd3f25b7558.jpeg)

But it still doesn’t work. How to solve this problem? Thanks everyone!

And my overall installation process is as follows：

1. sudo apt install ./libprecice3\_3.1.1\_focal.deb  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/9/98eb541f1f59e2e769a4c5130367a1454b62b377.png)
2. sudo apt install ./calculix-precice3\_2.20.1-2\_amd64\_focal.deb
3. Install calculix dependency library (arpack yaml-cpp yay spooles)
4. Building the adapted CalculiX

> code ```  
> wget [https://github.com/precice/calculix-adapter/archive/refs/heads/master.tar.gz](https://github.com/precice/calculix-adapter/archive/refs/heads/master.tar.gz)  
> tar -xzf master.tar.gz  
> cd calculix-adapter-master  
> make -j 8

```
Is there the problem in these steps?
```

---

<div class="post-metadata">

**Author:** ![Jimmy](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@Jimmy](https://precice.discourse.group/u/Jimmy)\
**Post date:** [August 18, 2024, 9:48am UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/2 "2024-08-18T09:48:57Z")

</div>

Hi, everyone. I have solve the problem!

I referred to this post: [Trouble install calculix adapter - yaml-cpp issue - Official adapters and tutorials - preCICE Forum on Discourse](https://precice.discourse.group/t/trouble-install-calculix-adapter-yaml-cpp-issue/1993), downloaded yaml0.7.0, and installed it. The installation steps are as follows:

```
cd yaml-cpp
mkdir build && cd build
cmake -D BUILD_SHARED_LIBS=ON ..
make -j16
sudo make install

```

But after installation, the following problems occurred:

 ![cdfb57ca8b9ec3a130741cac311ae6a](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/a/a75609220ad7136d51ec365242152b75e4e4430e.png)

I found that I needed to upgrade GLIBC to a higher version, so I took the following installation steps:

```
#Add a higher version source
deb http://mirrors.aliyun.com/ubuntu/ jammy main

#Update and Install
sudo apt update
sudo apt install libc6

```

It’s already running normally!

Hope it helps people who have the same problem.

---

<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:** [August 20, 2024, 11:58am UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/3 "2024-08-20T11:58:57Z")

</div>

Hi @Jimmy,

I understand that you are installing the CalculiX adapter Debian package for Ubuntu 20.04 (focal) on Ubuntu 22.04 (jammy). Is that correct? This would explain the dependencies mix-up you are getting.

The latest version provides packages for both:

> **[Release v2.20.1 · precice/calculix-adapter](https://github.com/precice/calculix-adapter/releases/tag/v2.20.1)**
>
> This release ensures compatibility of the adapter with preCICE v3.0.0.
> What's Changed
> 
> Add pre-commit hook config file for clang-format by @IshaanDesai in #117
> Port the CalculiX adapter to preCICE ...

---

<div class="post-metadata">

**Author:** ![Jimmy](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@Jimmy](https://precice.discourse.group/u/Jimmy)\
**Post date:** [August 21, 2024, 1:26pm UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/4 "2024-08-21T13:26:04Z")

</div>

Hi, @Makis . Thank you for your reply!

In fact I installed the CalculiX adapter Debian packageon on Ubuntu 20.04 (focal). But for some reason I don’t know, the yaml0.7.0 is required. This is why I did the above two steps [post 2](https://precice.discourse.group/t/the-problem-of-calculix-adapter-install/2069/2).

---

<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:** [August 29, 2024, 6:05am UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/5 "2024-08-29T06:05:06Z")

</div>

Looking at the `calculix-precice3_2.20.1-2_amd64_focal.deb` (open as a compressed file, then look into the `control` file), I see:

```
Depends: libarpack2 (>= 2.1), libblas3 | libblas.so.3, libc6 (>= 2.29), libgcc-s1 (>= 4.0), libgfortran5 (>= 8), libgomp1 (>= 4.9), liblapack3 | liblapack.so.3, libprecice3 (>= 3.0.0), libspooles2.2, libstdc++6 (>= 9), libyaml-cpp0.6 (>= 0.6.2) | libyaml-cpp0.7

```

This means that the `libyaml-cpp0.7` is an [alternative](https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps) to the `libyaml-cpp0.6`.

Ubuntu 20.04 seems to provide `libyaml-cpp0.6 (0.6.2)`: [Ubuntu – Package Search Results -- yaml-cpp](https://packages.ubuntu.com/search?keywords=yaml-cpp&searchon=names&suite=focal&section=all)

My guess is that there are somehow two versions of yaml-cpp on that system, and there is a version mix-up. I would try removing 0.7 anyway and stick to the default 0.6. (yes, I know you installed 0.7 afterwards, but let’s reset to the default state first).

What happens if you run `which ccx_preCICE` and then `ldd /path/to/ccx_preCICE` (where `/path/to/ccx_preCICE` is what the first command gives you)?

P.S.: If everything else fails, you can always build the CalculiX adapter from source very easily, but this is interesting for us to debug and document.

---

<div class="post-metadata">

**Author:** ![wlzr](https://avatars.discourse-cdn.com/v4/letter/w/34f0e0/32.png) [@wlzr](https://precice.discourse.group/u/wlzr)\
**Post date:** [November 24, 2024, 7:01am UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/6 "2024-11-24T07:01:39Z")

</div>

hi,@Makis,  
I encountered the same problem. I used ‘sudo apt install ./calculix-precice3\_2.20.1-2\_amd64\_focal.deb’ to install it, but my ccx\_preCICE is not working properly.  
 ![图片](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/2/29b89fd4af4c3e4e7d69ab912532650bded4488e.png)

I followed the steps in your previous reply and it is shown in the following figure:

 ![图片](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/9/99d2348f32e615abb851567889eb538c7412d6da.png)  
And I am certain that the dependency installation is correct：  
 ![图片](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/6/60a51367a4089a79c0c8902ec56191186668e48d.png)

---

<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:** [March 19, 2025, 3:22pm UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/7 "2025-03-19T15:22:57Z")

</div>

@wlzr did you manage to resolve this by now? If yes, how?

My first guess would be that you installed a Debian package that was not made for your system. This package was built for Ubuntu 20.04 Focal Fossa. Is this what you are using?

---

<div class="post-metadata">

**Author:** ![wlzr](https://avatars.discourse-cdn.com/v4/letter/w/34f0e0/32.png) [@wlzr](https://precice.discourse.group/u/wlzr)\
**Post date:** [March 21, 2025, 1:44am UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/8 "2025-03-21T01:44:15Z")

</div>

> [@Makis](#):
>
> s what you are using?

Thank you for your reply. I have already resolved the issue. My system is Ubuntu 20.04, but I gave up on the precompiled adapter and compiled it locally instead.

---

<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:** [March 21, 2025, 9:21am UTC](https://precice.discourse.group/t/installing-the-calculix-adapter-via-the-debian-package-for-ubuntu-20-04/2069/9 "2025-03-21T09:21:27Z")

</div>

Oh, I see… Building the CalculiX adapter from source should anyway not be too complicated or long, I have done it many times on many different systems.

In the next release of the CalculiX adapter, we will anyway generate and test new packages. Maybe something important has changed in the dependencies that Ubuntu 20.04 provides (although that would be unusual).
