# Installation of FreeFem++ on Ubuntu virtual machine

**URL:** <https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655>\
**Category:** FreeFEM installation\
**Created:** [December 20, 2024, 11:39pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655 "2024-12-20T23:39:36Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 20, 2024, 11:39pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/1 "2024-12-20T23:39:36Z")

</div>

Hello,  
I am new to the forum. I am trying to install FreeFem on my ubuntu virtual machine by following the directions from the installation website [Installation guide](https://doc.freefem.org/introduction/installation.html#compilation-on-ubuntu).  
Everything looks fine until I proceed with : “make petsc-slepc”. At this point I receive the following message:

“Makefile:24: Makefile.inc: No such file or directory  
make: \*\*\* No rule to make target ‘…/…/config.status’, needed by ‘Makefile.inc’. Stop.”

I would appreciate if anybody could help me with this, please.  
Thank you for your time!

---

<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:** [December 21, 2024, 8:23pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/2 "2024-12-21T20:23:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 21, 2024, 9:55pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/3 "2024-12-21T21:55:43Z")

</div>

Thank you for your reply, but I still get the same message when I get to the step:  
“make petsc-slepc”.  
The message is still:  
Makefile:24: Makefile.inc: No such file or directory  
make: \*\*\* No rule to make target ‘…/…/config.status’, needed by ‘Makefile.inc’. Stop.

Not sure if you have any idea of why this happens. Thank you!

---

<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:** [December 22, 2024, 6:45am UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/4 "2024-12-22T06:45:29Z")

</div>

Then it means you have a failure earlier in the process, you need to find the first failing command (out of the three before `make petsc-slepc`).

---

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 23, 2024, 7:23pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/5 "2024-12-23T19:23:43Z")

</div>

Thank you so much for your help. I was finally able to install, but now, when I run the code, I get this message:  
FreeFem++: /lib/x86\_64-linux-gnu/libgfortran.so.4: version `GFORTRAN\_7’ not found (required by FreeFem++)  
It looks like I need this specific file that was not installed. Any idea where I could find it? Or how I could install this? Thank you again!

---

<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:** [December 23, 2024, 8:33pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/6 "2024-12-23T20:33:20Z")

</div>

Do you have the same issue with `FreeFem++-mpi`?

---

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 23, 2024, 10:15pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/7 "2024-12-23T22:15:06Z")

</div>

In this case I receive the message:  
“FreeFem+±mpi: error while loading shared libraries: libmpi\_cxx.so.20: cannot open shared object file: No such file or directory”

---

<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:** [December 24, 2024, 7:30am UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/8 "2024-12-24T07:30:48Z")

</div>

Could you please do `ldd FreeFem++` (you’ll need to use the proper path to the `FreeFem++` binary) and paste the output? It’s likely that you are using a different environment between the configuration/compilation and when you are running the binaries, you should not get such a behavior.

---

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 24, 2024, 3:07pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/9 "2024-12-24T15:07:11Z")

</div>

I believe this is what you are asking for:

salvatore@salvatore-VirtualBox:/usr/local/bin$ ldd /usr/local/bin/FreeFem++  
/usr/local/bin/FreeFem++: /lib/x86\_64-linux-gnu/libgfortran.so.4: version `GFORTRAN\_7’ not found (required by /usr/local/bin/FreeFem++)  
linux-vdso.so.1 (0x00007ffe239dc000)  
libumfpack.so.5 =\> /usr/local/ff-petsc/r/lib/libumfpack.so.5 (0x00007dd777200000)  
libcholmod.so.3 =\> /usr/local/ff-petsc/r/lib/libcholmod.so.3 (0x00007dd776c00000)  
liblapack.so.3 =\> /lib/x86\_64-linux-gnu/liblapack.so.3 (0x00007dd776400000)  
libblas.so.3 =\> /lib/x86\_64-linux-gnu/libblas.so.3 (0x00007dd778a34000)  
libdl.so.2 =\> /lib/x86\_64-linux-gnu/libdl.so.2 (0x00007dd778a2f000)  
libgfortran.so.4 =\> /lib/x86\_64-linux-gnu/libgfortran.so.4 (0x00007dd776000000)  
libm.so.6 =\> /lib/x86\_64-linux-gnu/libm.so.6 (0x00007dd778946000)  
libhdf5\_serial.so.100 =\> /lib/x86\_64-linux-gnu/libhdf5\_serial.so.100 (0x00007dd775c00000)  
libstdc++.so.6 =\> /lib/x86\_64-linux-gnu/libstdc++.so.6 (0x00007dd775800000)  
libgcc\_s.so.1 =\> /lib/x86\_64-linux-gnu/libgcc\_s.so.1 (0x00007dd778922000)  
libc.so.6 =\> /lib/x86\_64-linux-gnu/libc.so.6 (0x00007dd775400000)  
libamd.so.2 =\> /usr/local/ff-petsc/r/lib/libamd.so.2 (0x00007dd774e00000)  
libsuitesparseconfig.so.5 =\> /usr/local/ff-petsc/r/lib/libsuitesparseconfig.so.5 (0x00007dd774800000)  
libcolamd.so.2 =\> /usr/local/ff-petsc/r/lib/libcolamd.so.2 (0x00007dd774200000)  
libccolamd.so.2 =\> /usr/local/ff-petsc/r/lib/libccolamd.so.2 (0x00007dd773c00000)  
libcamd.so.2 =\> /usr/local/ff-petsc/r/lib/libcamd.so.2 (0x00007dd773600000)  
libmetis.so =\> /usr/local/ff-petsc/r/lib/libmetis.so (0x00007dd7788ad000)  
/lib64/ld-linux-x86-64.so.2 (0x00007dd778aef000)  
libcrypto.so.3 =\> /lib/x86\_64-linux-gnu/libcrypto.so.3 (0x00007dd773000000)  
libcurl.so.4 =\> /lib/x86\_64-linux-gnu/libcurl.so.4 (0x00007dd777759000)  
libsz.so.2 =\> /lib/x86\_64-linux-gnu/libsz.so.2 (0x00007dd7788a8000)  
libz.so.1 =\> /lib/x86\_64-linux-gnu/libz.so.1 (0x00007dd77888c000)  
libpthread.so.0 =\> /lib/x86\_64-linux-gnu/libpthread.so.0 (0x00007dd778885000)  
librt.so.1 =\> /lib/x86\_64-linux-gnu/librt.so.1 (0x00007dd778880000)  
libnghttp2.so.14 =\> /lib/x86\_64-linux-gnu/libnghttp2.so.14 (0x00007dd77772f000)  
libidn2.so.0 =\> /lib/x86\_64-linux-gnu/libidn2.so.0 (0x00007dd77770e000)  
librtmp.so.1 =\> /lib/x86\_64-linux-gnu/librtmp.so.1 (0x00007dd7776ef000)  
libssh.so.4 =\> /lib/x86\_64-linux-gnu/libssh.so.4 (0x00007dd777682000)  
libpsl.so.5 =\> /lib/x86\_64-linux-gnu/libpsl.so.5 (0x00007dd77886a000)  
libssl.so.3 =\> /lib/x86\_64-linux-gnu/libssl.so.3 (0x00007dd7775de000)  
libgssapi\_krb5.so.2 =\> /lib/x86\_64-linux-gnu/libgssapi\_krb5.so.2 (0x00007dd77758a000)  
libldap-2.5.so.0 =\> /lib/x86\_64-linux-gnu/libldap-2.5.so.0 (0x00007dd77752b000)  
liblber-2.5.so.0 =\> /lib/x86\_64-linux-gnu/liblber-2.5.so.0 (0x00007dd77751a000)  
libzstd.so.1 =\> /lib/x86\_64-linux-gnu/libzstd.so.1 (0x00007dd777131000)  
libbrotlidec.so.1 =\> /lib/x86\_64-linux-gnu/libbrotlidec.so.1 (0x00007dd77750c000)  
libaec.so.0 =\> /lib/x86\_64-linux-gnu/libaec.so.0 (0x00007dd777503000)  
libunistring.so.2 =\> /lib/x86\_64-linux-gnu/libunistring.so.2 (0x00007dd776f87000)  
libgnutls.so.30 =\> /lib/x86\_64-linux-gnu/libgnutls.so.30 (0x00007dd775215000)  
libhogweed.so.6 =\> /lib/x86\_64-linux-gnu/libhogweed.so.6 (0x00007dd776f3f000)  
libnettle.so.8 =\> /lib/x86\_64-linux-gnu/libnettle.so.8 (0x00007dd776bba000)  
libgmp.so.10 =\> /lib/x86\_64-linux-gnu/libgmp.so.10 (0x00007dd77637e000)  
libkrb5.so.3 =\> /lib/x86\_64-linux-gnu/libkrb5.so.3 (0x00007dd775b35000)  
libk5crypto.so.3 =\> /lib/x86\_64-linux-gnu/libk5crypto.so.3 (0x00007dd7774d2000)  
libcom\_err.so.2 =\> /lib/x86\_64-linux-gnu/libcom\_err.so.2 (0x00007dd776f37000)  
libkrb5support.so.0 =\> /lib/x86\_64-linux-gnu/libkrb5support.so.0 (0x00007dd776f29000)  
libsasl2.so.2 =\> /lib/x86\_64-linux-gnu/libsasl2.so.2 (0x00007dd776f0e000)  
libbrotlicommon.so.1 =\> /lib/x86\_64-linux-gnu/libbrotlicommon.so.1 (0x00007dd776b97000)  
libp11-kit.so.0 =\> /lib/x86\_64-linux-gnu/libp11-kit.so.0 (0x00007dd7756c5000)  
libtasn1.so.6 =\> /lib/x86\_64-linux-gnu/libtasn1.so.6 (0x00007dd776b7f000)  
libkeyutils.so.1 =\> /lib/x86\_64-linux-gnu/libkeyutils.so.1 (0x00007dd776f05000)  
libresolv.so.2 =\> /lib/x86\_64-linux-gnu/libresolv.so.2 (0x00007dd776b6b000)  
libffi.so.8 =\> /lib/x86\_64-linux-gnu/libffi.so.8 (0x00007dd776b5e000)

---

<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:** [December 24, 2024, 3:10pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/10 "2024-12-24T15:10:47Z")

</div>

Are you using miniconda by any chance?

---

<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:** [December 24, 2024, 3:14pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/11 "2024-12-24T15:14:19Z")

</div>

Additionally, could you please upload `config.log` from the root of the `FreeFem-sources` folder, as well as `configure.log` from `FreeFem-sources/3rdparty/ff-petsc/petsc-3.22.2/fr/lib/petsc/conf/configure.log` (the version number `3.22.2` may be different on your machine)?

---

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 24, 2024, 3:42pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/12 "2024-12-24T15:42:22Z")

</div>

No, I am not using miniconda. Should I ?  
Unfortunately, I cannot upload the two files you are asking because I am a new user. This is what I get when I try to upload:  
“Sorry, new users can not upload attachments.”  
I am not sure if I could send them to you in a different way.  
Thank you!

---

<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:** [December 24, 2024, 3:59pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/13 "2024-12-24T15:59:36Z")

</div>

I’ve increased your rights, you should now be able to upload both files.

---

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 24, 2024, 4:18pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/14 "2024-12-24T16:18:51Z")

</div>

[config.log](https://community.freefem.org/uploads/short-url/6mVYdirGKaEkpG4N4ieowoPa92a.log) (153.8 KB)  
[configure.log.zip](https://community.freefem.org/uploads/short-url/k0kSsFOaDPv6Wm2wUo8uMQKmAgQ.zip) (425.3 KB)

Thank you so much. I had to zip the file from `FreeFem-sources/3rdparty/ff-petsc/petsc-3.22.2/fr/lib/petsc/conf/configure.log`because it was too large. I hope it is ok.

---

<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:** [December 24, 2024, 4:35pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/15 "2024-12-24T16:35:27Z")

</div>

You have a mismatch between Fortran versions on your machine for a reason I’m not sure I understand. Are you able to run a single Fortran program? Are you are to run a single MPI program?

---

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 24, 2024, 4:50pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/16 "2024-12-24T16:50:37Z")

</div>

yes, I can run a simple Fortran. I can also run a simple MPI program (using mpiexec -n 4)

---

<div class="post-metadata">

**Author:** ![salvo.giordano](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salvo.giordano](https://community.freefem.org/u/salvo.giordano)\
**Post date:** [December 25, 2024, 8:58pm UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/17 "2024-12-25T20:58:43Z")

</div>

I uninstalled Fortran, and then installed again both Fortran and FreeFem based on the directions you provided. It seems that the problem is fixed, that is my FreeFem is runinng well.  
Thank you so much for your help and time. I really appreciate it.

---

<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:** [December 26, 2024, 6:29am UTC](https://community.freefem.org/t/installation-of-freefem-on-ubuntu-virtual-machine/3655/18 "2024-12-26T06:29:05Z")

</div>

I’m glad you got things sorted out, I was running out of options 😃
