# Error load of MUMPS with debian 12 (bookworm)

**URL:** https://community.freefem.org/t/error-load-of-mumps-with-debian-12-bookworm/2597
**Category:** FreeFEM installation
**Created:** [July 11, 2023, 12:40pm UTC](https://community.freefem.org/t/error-load-of-mumps-with-debian-12-bookworm/2597 "2023-07-11T12:40:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rvallon](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rvallon](https://community.freefem.org/u/rvallon)
#### Post date: [July 11, 2023, 12:40pm UTC](https://community.freefem.org/t/error-load-of-mumps-with-debian-12-bookworm/2597/1 "2023-07-11T12:40:47Z")

</div>

Hello,

I recently upgraded my debian os from version 11 to 12. I was using the debian FreeFem package and the MUMPS library without any issue on debian 11.

With debian 12, an error is raised when loading the MUMPS library `load "MUMPS"`:

```auto
-- FreeFem++ v4.11 (Mon Jul 10 11:56:47 AM CEST 2023 - git v4.11)
   file : 2DLISSurfactantsFEMIC.edp
 Load: lg_fem lg_mesh lg_mesh3 eigenvalue 

Load error: MUMPS
	 fail: 
 dlerror : libdmumps_seq-5.3.so: cannot open shared object file: No such file or directory
list prefix: './' '/scratch/rvallon/FreeFEM/lib/ff++/4.11/lib/' list suffix: '' , '.so' 
  current line = 31
Load error : MUMPS
	line number :31, MUMPS
error Load error : MUMPS
	line number :31, MUMPS
 code = 2 mpirank: 0

```

When loading MUMPS, libdmumps version 5.3 is looked for. debian 12 has libdmumps version 5.5 by default.

Is there any way to indicate which version to load?

Best,

RV

---

<div class="post-metadata">

### Author: ![rvallon](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rvallon](https://community.freefem.org/u/rvallon)
#### Post date: [July 11, 2023, 1:48pm UTC](https://community.freefem.org/t/error-load-of-mumps-with-debian-12-bookworm/2597/2 "2023-07-11T13:48:06Z")

</div>

Ok, this could be solved by

1. installing the debian package libfreefem++
2. updating /etc/freefem++.pref

However, an other error is raised when including getARGV.idp `include "getARGV.idp"`:

```auto
-- FreeFem++ v4.9 ( - git no git)
 Load: lg_fem lg_mesh lg_mesh3 eigenvalue 
init MUMPS_SEQ: MPI_Init
 Add lapack interface ... load: iovtk 
 Error opening file getARGV.idp in: 
  -- try :"getARGV.idp"
  -- try :"/usr/lib/ff++/4.9/idp/getARGV.idp"

 Error line number 36, in file 2DLISSurfactantsFEMIC.edp, before token getARGV.idp
lex: Error input opening file 
  current line = 36
Compile error : lex: Error input opening file 
	line number :36, getARGV.idp
error Compile error : lex: Error input opening file 
	line number :36, getARGV.idp
 code = 1 mpirank: 0
close MUMPS_SEQ: MPI_Finalize

```

Best

RV

---

<div class="post-metadata">

### Author: ![rvallon](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rvallon](https://community.freefem.org/u/rvallon)
#### Post date: [July 11, 2023, 2:38pm UTC](https://community.freefem.org/t/error-load-of-mumps-with-debian-12-bookworm/2597/3 "2023-07-11T14:38:02Z")

</div>

This was solved by properly editing /etc/.freefem++.pref

```auto
loadpath += "./"
loadpath += "/usr/include/freefem++/lib"
includepath += "/usr/include/freefem++/idp"

```

RV
