# FreeFEM installation error on Linux Mint 20

**URL:** <https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830>\
**Category:** FreeFEM installation\
**Created:** [June 20, 2022, 3:38pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830 "2022-06-20T15:38:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![AzizTakhirov](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aziztakhirov/32/26_2.png) [@AzizTakhirov](https://community.freefem.org/u/AzizTakhirov)\
**Post date:** [June 20, 2022, 3:38pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/1 "2022-06-20T15:38:15Z")

</div>

Hi,  
I’m trying to install FreeFEM++ on my laptop.  
Everything seems to work out fine till I run: make -j

Errors appear as:  
**g++ -shared -fPIC -g -DNDEBUG -O3 -mmmx -mavx -std=c++14 -DBAMG\_LONG\_LONG -DNCHECKPTR -fPIC -I/usr/local/ff-petsc/r/include -I/usr/include/hdf5/serial -I/usr/include ‘dfft.o’ -o dfft.so '-lfftw3’**  
**/usr/bin/ld: /usr/local/lib/libfftw3.a(assert.o): relocation R\_X86\_64\_PC32 against symbol `stdout@@GLIBC\_2.2.5’ can not be used when making a shared object; recompile with -fPIC**  
**/usr/bin/ld: final link failed: bad value**  
**collect2: error: ld returned 1 exit status**  
**make[4]: \*\*\* [Makefile:897: dfft.so] Error 1**  
**make[4]: \*\*\* Waiting for unfinished jobs…**

and

**make[4]: Leaving directory '/home/aziz/Documents/src/FreeFem-sources/plugin/seq’**  
**make[3]: \*\*\* [Makefile:891: load\_compile] Error 2**  
**make[3]: Leaving directory '/home/aziz/Documents/src/FreeFem-sources/plugin/seq’**  
**make[2]: \*\*\* [Makefile:664: all-recursive] Error 1**  
**make[2]: Leaving directory '/home/aziz/Documents/src/FreeFem-sources/plugin’**  
**make[1]: \*\*\* [Makefile:800: all-recursive] Error 1**  
**make[1]: Leaving directory '/home/aziz/Documents/src/FreeFem-sources’**  
**make: \*\*\* [Makefile:750: all] Error 2**

Thank you

---

<div class="post-metadata">

**Author:** ![AzizTakhirov](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aziztakhirov/32/26_2.png) [@AzizTakhirov](https://community.freefem.org/u/AzizTakhirov)\
**Post date:** [June 20, 2022, 7:31pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/2 "2022-06-20T19:31:53Z")

</div>

OK, I tried the set of instructions given in [http://jolivet.perso.enseeiht.fr/FreeFem-tutorial/main.pdf](http://jolivet.perso.enseeiht.fr/FreeFem-tutorial/main.pdf)

Again, errors appear in make -j4, attached is the config.log

[config.log](https://community.freefem.org/uploads/short-url/vb3dF0S0DH3ikrXr1gl4ZoFBrYP.log) (352.9 KB)  
f

---

<div class="post-metadata">

**Author:** ![AzizTakhirov](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aziztakhirov/32/26_2.png) [@AzizTakhirov](https://community.freefem.org/u/AzizTakhirov)\
**Post date:** [June 20, 2022, 7:48pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/3 "2022-06-20T19:48:33Z")

</div>

Another try with the \*deb file. Running a code with load Petsc gives:

**Load: lg\_fem lg\_mesh lg\_mesh3 eigenvalue parallelempi \*\*  
\*\* load: init metis (v 5 )**  
\*\*PETSc Error — Open MPI library version \*\*  
**Open MPI v4.0.3, package: Debian OpenMPI, ident: 4.0.3, repo rev: v4.0.3, Mar 03, 2020 does not match what PETSc was compiled with 2.1, aborting**  
**PETSC ERROR: Logging has not been enabled.**  
**You might have forgotten to call PetscInitialize().**

---

<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:** [June 20, 2022, 8:14pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/4 "2022-06-20T20:14:50Z")

</div>

The `.deb` will not work on Linux Mint. Your library installed FFTW3 is messed up (does not support shared library), so you should add `--disable-system-fftw --disable-download_fftw`, then reconfigure and recompile.

---

<div class="post-metadata">

**Author:** ![AzizTakhirov](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aziztakhirov/32/26_2.png) [@AzizTakhirov](https://community.freefem.org/u/AzizTakhirov)\
**Post date:** [June 21, 2022, 3:18pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/5 "2022-06-21T15:18:57Z")

</div>

> [@prj](#):
>
> FFTW3

Dear Pierre,  
unfortunately, still no success.  
[config.log](https://community.freefem.org/uploads/short-url/eQcQqht8utvDmN6KX8tvpxp0dXS.log) (352.5 KB)

---

<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:** [June 21, 2022, 3:24pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/6 "2022-06-21T15:24:40Z")

</div>

What is the output of `make`?

---

<div class="post-metadata">

**Author:** ![AzizTakhirov](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aziztakhirov/32/26_2.png) [@AzizTakhirov](https://community.freefem.org/u/AzizTakhirov)\
**Post date:** [June 21, 2022, 3:40pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/7 "2022-06-21T15:40:50Z")

</div>

Here it is:  
[makeoutput.log](https://community.freefem.org/uploads/short-url/ai13sCV2C0hxGPfgHGIoGBkO7li.log) (68.5 KB)

---

<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:** [June 21, 2022, 3:41pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/8 "2022-06-21T15:41:52Z")

</div>

I don’t see any particular error there. What is the error you are currently getting?

---

<div class="post-metadata">

**Author:** ![AzizTakhirov](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aziztakhirov/32/26_2.png) [@AzizTakhirov](https://community.freefem.org/u/AzizTakhirov)\
**Post date:** [June 21, 2022, 7:30pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/9 "2022-06-21T19:30:01Z")

</div>

Here are the issues I’m having when I run:

1. Everything has \*dpkg-new appended at the end, so for example /usr/local/lib/ff++/4.6/lib/scotch.so.dpkg-new.
2. Serial code fails to plot: sh: 1: ffglut: not found. Maybe also related to \*dpkg-new issue.
3. Parallel run: **FreeFem+±mpi.dpkg-new -np 4 File2\_MPI.edp**  
gives

**– FreeFem++ v4.6 (Thu Apr 2 15:47:38 CEST 2020 - git v4.6)**  
**sh: 1: ffglut: not found**  
\*\* Load: lg\_fem lg\_mesh lg\_mesh3 eigenvalue parallelempi \*\*  
\*\* Error opening file -np in: \*\*  
\*\* – try :“-np”\*\*  
\*\* – try :“/usr/local/lib/ff++/4.6/include/-np”\*\*

\*\* Error line number 1, in file – unkown --, before token \*\*  
**lex: Error input opening file \*\*  
\*\* current line = -1 mpirank 0 / 1**  
**Compile error : lex: Error input opening file \*\*  
\*\* line number :1, \*\*  
 terminate called after throwing an instance of ‘ErrorCompile’  
\*\* what(): Compile error : lex: Error input opening file \*\*  
\*\* line number :1,**

1. My .freefem++.pref file contents:  
**verbosity = 1**  
**loadpath += “/usr/local/lib/ff++/4.6/lib”**  
**includepath += “/usr/local/lib/ff++/4.6/include/”**

---

<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:** [June 21, 2022, 7:32pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/10 "2022-06-21T19:32:12Z")

</div>

You are not using the version you just compiled, so of course it’s not working. You need to remove everything that is not related to your latest installation that should work.

---

<div class="post-metadata">

**Author:** ![AzizTakhirov](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aziztakhirov/32/26_2.png) [@AzizTakhirov](https://community.freefem.org/u/AzizTakhirov)\
**Post date:** [June 22, 2022, 4:32pm UTC](https://community.freefem.org/t/freefem-installation-error-on-linux-mint-20/1830/11 "2022-06-22T16:32:17Z")

</div>

It seems to be working, thank you!
