# FreeFEM++ v 4.13 on Ubuntu 22.04.5 LTS

**URL:** https://community.freefem.org/t/freefem-v-4-13-on-ubuntu-22-04-5-lts/3800
**Category:** FreeFEM installation
**Created:** [March 12, 2025, 3:46pm UTC](https://community.freefem.org/t/freefem-v-4-13-on-ubuntu-22-04-5-lts/3800 "2025-03-12T15:46:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nshiell](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nshiell](https://community.freefem.org/u/nshiell)
#### Post date: [March 12, 2025, 3:46pm UTC](https://community.freefem.org/t/freefem-v-4-13-on-ubuntu-22-04-5-lts/3800/1 "2025-03-12T15:46:43Z")

</div>

Hello,  
As the title says, I am having trouble getting FreeFEM++ v4.13 to run on Ubuntu 22.04.5 LTS.

I have been following the instructions here:

> **[GitHub - FreeFem/FreeFem-sources: FreeFEM source code](https://github.com/FreeFem/FreeFem-sources?tab=readme-ov-file#freefem)**
>
> FreeFEM source code

I ran into some trouble with automatically downloading some of the 3rd party .tar.gz so I do manually grab them from: [GitHub - FreeFem/FreeFEM-3rdparties](https://github.com/FreeFem/FreeFEM-3rdparties)

Now I am running into an issue when running the command: make petsc-slepc

It looks like the installation completes but I get the following error (I assume when it is checking the install worked)

# Install complete. Now to check if the libraries are working do (in current directory): make SLEPC\_DIR=/home/ajaykumar7/FreeFem-install/ff-petsc/r PETSC\_DIR=/home/ajaykumar7/FreeFem-install/ff-petsc/r PETSC\_ARCH=“” check

## /usr/bin/gmake --no-print-directory -f makefile PETSC\_ARCH=installed-arch-linux2-c-opt PETSC\_DIR=/home/ajaykumar7/FreeFem-install/ff-petsc/r SLEPC\_DIR=/home/ajaykumar7/FreeFem-sources-4.13/3rdparty/ff-petsc/petsc-3.19.2/fr/externalpackages/git.slepc install-builtafterslepc /usr/bin/gmake --no-print-directory -f makefile PETSC\_ARCH=installed-arch-linux2-c-opt PETSC\_DIR=/home/ajaykumar7/FreeFem-install/ff-petsc/r SLEPC\_DIR=/home/ajaykumar7/FreeFem-sources-4.13/3rdparty/ff-petsc/petsc-3.19.2/fr/externalpackages/git.slepc slepc4py-install gmake[8]: Nothing to be done for ‘slepc4py-install’. \*\*\* Building and installing HPDDM \*\*\* gmake[4]: Nothing to be done for ‘amrex-install’. gmake[4]: Nothing to be done for ‘bamg-install’. make[1]: Leaving directory ‘/home/ajaykumar7/FreeFem-sources-4.13/3rdparty/ff-petsc/petsc-3.19.2’ cd petsc-3.19.2 && make PETSC\_DIR=/home/ajaykumar7/FreeFem-sources-4.13/3rdparty/ff-petsc/petsc-3.19.2 PETSC\_ARCH=fr check make[1]: Entering directory ‘/home/ajaykumar7/FreeFem-sources-4.13/3rdparty/ff-petsc/petsc-3.19.2’ Running check examples to verify correct installation Using PETSC\_DIR=/home/ajaykumar7/FreeFem-sources-4.13/3rdparty/ff-petsc/petsc-3.19.2 and PETSC\_ARCH=fr Possible error running C/C++ src/snes/tutorials/ex19 with 1 MPI process

MCA framework parameters can only take a single negation operator  
(“^”), and it must be at the beginning of the value. The following  
value violates this rule:

```
^ucx,pt2ptblt=^openib

```

When used, the negation operator sets the “exclusive” behavior mode,  
meaning that it will exclude all specified components (and implicitly  
include all others). If the negation operator is not specified, the  
“inclusive” mode is assumed, meaning that all specified components  
will be included (and implicitly exclude all others).

For example, “^a,b” specifies the exclusive behavior and means “use  
all components _except_ a and b”, while “c,d” specifies the inclusive  
behavior and means “use _only_ components c and d.”

You cannot mix inclusive and exclusive behavior.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [March 14, 2025, 6:17pm UTC](https://community.freefem.org/t/freefem-v-4-13-on-ubuntu-22-04-5-lts/3800/2 "2025-03-14T18:17:35Z")

</div>

You need to fix your MPI. Why are you using MCA framework parameters?

---

<div class="post-metadata">

### Author: ![nshiell](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nshiell](https://community.freefem.org/u/nshiell)
#### Post date: [March 14, 2025, 6:31pm UTC](https://community.freefem.org/t/freefem-v-4-13-on-ubuntu-22-04-5-lts/3800/3 "2025-03-14T18:31:36Z")

</div>

Hey thanks for the reply.

I figured it had something to with MPI based on the error msg " Possible error running C/C++ src/snes/tutorials/ex19 with 1 MPI process"

I never set any MCA framework parameters personally, I am only following the installation instructions.

Can you elaborate a little on what you mean by “You need to fix your MPI”?

Nicholi.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [March 14, 2025, 7:46pm UTC](https://community.freefem.org/t/freefem-v-4-13-on-ubuntu-22-04-5-lts/3800/4 "2025-03-14T19:46:45Z")

</div>

First, you should consider updating your FreeFEM sources (current version is 4.15, and the `develop` branch is even better). Second, you should uninstall MPI if you don’t know how those MCA framework parameters got there, FreeFEM will install a proper MPI for you.

---

<div class="post-metadata">

### Author: ![nshiell](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nshiell](https://community.freefem.org/u/nshiell)
#### Post date: [March 14, 2025, 9:43pm UTC](https://community.freefem.org/t/freefem-v-4-13-on-ubuntu-22-04-5-lts/3800/5 "2025-03-14T21:43:16Z")

</div>

unfortunately I need to install v 4.13.
