# Compiling precice on opensuse leap

**URL:** <https://precice.discourse.group/t/compiling-precice-on-opensuse-leap/1148>\
**Category:** Installing preCICE\
**Tags:** opensuse\
**Created:** [August 26, 2022, 9:00am UTC](https://precice.discourse.group/t/compiling-precice-on-opensuse-leap/1148 "2022-08-26T09:00:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [August 26, 2022, 9:00am UTC](https://precice.discourse.group/t/compiling-precice-on-opensuse-leap/1148/1 "2022-08-26T09:00:47Z")

</div>

Hi,  
lately I have been trying to compile precice on Opensuse Leap 15.4. Up to now I managed to compile, but some tests fail. Here is the procedure I followed:

## general prerequisites

**MPI:**

installed in _/usr/lib64/mpi/gcc/mpich_ (via YaST) not found in the path (which mpicc: not found)

Packages:

- mpich (version 4.0.1)
- mpich-devel
- mpich-gnu-hpc
- mpich\_4\_0\_1-gnu-hpc

**PETSc:**

The repo has PETSc 3.14.5 but it is not installable as depends on libopenblas=0.3.13, while 0.3.20 is installed and it gives a warning  
So I cloned and compile petsc:

- git clone -b release [PETSc / petsc · GitLab](https://gitlab.com/petsc/petsc.git) petsc

- set environment variables in .bashrc:

**EIGEN:**

eigen3-devel from YaST

**BOOST: (\>=1.71.0)**

the following are required:

- boost\_log
- boost\_log\_setup
- boost\_thread
- boost\_system
- boost\_filesystem
- boost\_program\_options
- boost\_unit\_test\_framework

I followed the command suggested on the precice website:  
sudo zypper install libboost\_log1\_75\_0-devel libboost\_thread1\_75\_0-devel libboost\_system1\_75\_0-devel libboost\_filesystem1\_75\_0-devel libboost\_program\_options1\_75\_0-devel libboost\_test1\_75\_0-devel

**LIBXML2:**

libxml2-2 libxml2-devel libxml2-tools from YaST

**PYTHON:**

python3 python3-devel python3-numpy python3-numpy-devel (from YaST)

## 1) clone the repo

wget [https://github.com/precice/precice/archive/v2.5.0.tar.gz](https://github.com/precice/precice/archive/v2.5.0.tar.gz)

tar -xzvf v2.5.0.tar.gz

cd precice-2.5.0

## 2) compile

mkdir build  
cd build  
cmake ..  
make -j(n)

I got the following warnings:

/usr/lib64/gcc/x86\_64-suse-linux/7/../../../../x86\_64-suse-linux/bin/ld: warning: libicui18n.so.suse65.1, needed by /usr/lib64/libboost\_regex.so.1.75.0, may conflict with libicui18n.so.69

/usr/lib64/gcc/x86\_64-suse-linux/7/../../../../x86\_64-suse-linux/bin/ld: warning: libicuuc.so.suse65.1, needed by /usr/lib64/libboost\_regex.so.1.75.0, may conflict with libicuuc.so.69

/usr/lib64/gcc/x86\_64-suse-linux/7/../../../../x86\_64-suse-linux/bin/ld: warning: libicudata.so.suse65.1, needed by /usr/lib64/libicuuc.so.suse65.1, may conflict with libicudata.so.69

## 3) test

The complilation runs without errors.

The following tests FAILED:

```
  1 - precice.acceleration (Failed)
  4 - precice.com.mpiports (Failed)
  8 - precice.m2n.mpiports (Failed)
 10 - precice.mapping.petrbf (Timeout)
 19 - precice.integration.Parallel (Failed)
 20 - precice.integration.Serial (Failed)

```

I am also attaching the log of the tests [LastTest.log](https://precice.discourse.group/uploads/short-url/fzNjxjwqvBjboWGUIUdYoI5L9gM.log) (420.5 KB)

If you see any errors or better procedures please let me know.  
Claudio

---

<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:** [September 9, 2022, 7:17am UTC](https://precice.discourse.group/t/compiling-precice-on-opensuse-leap/1148/2 "2022-09-09T07:17:37Z")

</div>

Hi @Claudio,

I don’t know what the issue is, but I also faced issues with MPI and PETSc while trying to write the instructions you found on the website: [Building from source - Dependencies | preCICE - The Coupling Library](https://precice.org/installation-source-dependencies.html#opensuse-leap-154)

I suspect that the issue is related to MPI. I would start by disabling PETSc (but keeping MPI enabled) to only focus on one part of the problem. What happens then?

By the way, already the fact that you get `mpicc: not found` is strange. What MPI binaries do you have installed? Please check that all of them come from the same MPI version (e.g., `mpirun --version`, with the compiler wrapper it is more complicated).

If you managed to solve this on your system, it would be very useful to contribute to the respective website section.

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [September 13, 2022, 8:29am UTC](https://precice.discourse.group/t/compiling-precice-on-opensuse-leap/1148/3 "2022-09-13T08:29:44Z")

</div>

Hi @Makis ,  
thanks for your answer. I am following the steps that you suggest, trying to compile first without PETSc and mainly to make MPI work. I’ll keep you updated in case I find a suitable procedure.  
Claudio

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [September 20, 2022, 1:42pm UTC](https://precice.discourse.group/t/compiling-precice-on-opensuse-leap/1148/4 "2022-09-20T13:42:25Z")

</div>

Hi,  
after some tests, this is the procedure I found to compile preCICE on opensuse, In the end, as @Makis  
said, it all boiled down to the right version of MPI and how to source it. 'll recap it here just in case.

## general prerequisites

**MPI:**

install openmpi:  
sudo zypper install: openmpi-devel

and add to .bashrc:

export PATH=/usr/lib64/mpi/gcc/openmpi/bin/:$PATH  
export LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:/usr/lib64/mpi/gcc/openmpi/lib64/

**PETSc:**

- git clone -b release [PETSc / petsc · GitLab](https://gitlab.com/petsc/petsc.git) petsc

- set environment variables in .bashrc:

**EIGEN:**

eigen3-devel from YaST

**BOOST: (\>=1.71.0)**

the following are required:

- boost\_log
- boost\_log\_setup
- boost\_thread
- boost\_system
- boost\_filesystem
- boost\_program\_options
- boost\_unit\_test\_framework

I followed the command suggested on the precice website:  
sudo zypper install libboost\_log1\_75\_0-devel libboost\_thread1\_75\_0-devel libboost\_system1\_75\_0-devel libboost\_filesystem1\_75\_0-devel libboost\_program\_options1\_75\_0-devel libboost\_test1\_75\_0-devel

**LIBXML2:**

libxml2-2 libxml2-devel libxml2-tools from YaST

**PYTHON:**

python3 python3-devel python3-numpy python3-numpy-devel (from YaST)

## 1) clone the repo

wget [https://github.com/precice/precice/archive/v2.5.0.tar.gz](https://github.com/precice/precice/archive/v2.5.0.tar.gz)

tar -xzvf v2.5.0.tar.gz

cd precice-2.5.0

## 2) compile

mkdir build  
cd build  
cmake ..  
make -j(n)

## 3) test

The compilation runs without errors.

All the tests PASS

---

<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:** [September 21, 2022, 11:38am UTC](https://precice.discourse.group/t/compiling-precice-on-opensuse-leap/1148/5 "2022-09-21T11:38:02Z")

</div>

Thank you very much, @Claudio! I added a link to this post on our [documentation](https://precice.org/installation-source-dependencies.html#opensuse-leap-154), but would you please also be able to edit the page directly with your suggested changes? That would make your very helpful insights more visible.

---

<div class="post-metadata">

**Author:** ![Cleison\_Armando\_Manr](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/cleison_armando_manr/32/3099_2.png) [@Cleison\_Armando\_Manr](https://precice.discourse.group/u/Cleison_Armando_Manr)\
**Post date:** [October 16, 2025, 6:36pm UTC](https://precice.discourse.group/t/compiling-precice-on-opensuse-leap/1148/6 "2025-10-16T18:36:45Z")

</div>

Hi all. I just recently order and updated the commands to install with all dependencies in this post: [Install PRECICE and dependencies for Multiphysics simulations in OpenSUSE | by Cleison Armando Manrique Aguirre | Oct, 2025 | Medium](https://cleisonmanrique.medium.com/install-precice-and-dependencies-for-multiphysics-simulations-in-opensuse-b2b2f57345db)
