# Installation on Ubuntu 20.04

**URL:** <https://community.freefem.org/t/installation-on-ubuntu-20-04/525>\
**Category:** FreeFEM installation\
**Created:** [July 28, 2020, 1:16pm UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525 "2020-07-28T13:16:31Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![paolopiers](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/paolopiers/32/48_2.png) [@paolopiers](https://community.freefem.org/u/paolopiers)\
**Post date:** [July 28, 2020, 1:16pm UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/1 "2020-07-28T13:16:31Z")

</div>

Hello everybody,  
I would like to install FreeFem onto Ubuntu 20.04 (LTS).

I downloaded the .deb file from the “Download” section of the official website. However, when I run the command FreeFem++ in my terminal, I am prompted the following error message:

`FreeFem++: error while loading shared libraries: libhdf5_serial.so.100: cannot open shared object file: No such file or directory`

I searched for a solution on the internet and I found this [link](https://github.com/FreeFem/FreeFem-sources/issues/104) where a similar issue is addressed.

Could you please help me solve?

Thanks 🙂

---

<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:** [July 28, 2020, 2:24pm UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/2 "2020-07-28T14:24:46Z")

</div>

This will be fixed in the next release where we have explicitly removed the HDF5 dependency.  
In the meantime, either recompile the develop branch, or try to do as in the link that you used (find an HDF5 shared object and link it appropriately).

---

<div class="post-metadata">

**Author:** ![paolopiers](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/paolopiers/32/48_2.png) [@paolopiers](https://community.freefem.org/u/paolopiers)\
**Post date:** [July 28, 2020, 4:05pm UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/3 "2020-07-28T16:05:41Z")

</div>

Thank you for the clarification.  
I have found the following solution, that does not require the installation from source.

These are the commands I executed to fix.

```
cd /usr/lib

sudo ln -srv ./x86_64-linux-gnu/libhdf5_serial.so.103 libhdf5_serial.so.100

```

Thank you very much again! 🙂

---

<div class="post-metadata">

**Author:** ![ClairP](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@ClairP](https://community.freefem.org/u/ClairP)\
**Post date:** [April 16, 2021, 2:14pm UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/4 "2021-04-16T14:14:47Z")

</div>

Hello I am on lubuntu20.04 and I followed the installation with the .deb pakage. When I run FreeFem++ I have the following error:  
FreeFem++: error while loading shared libraries: libgfortran.so.4: cannot open shared object file: No such file or directory

Do you have any idea ho to fix it?  
Bests

---

<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:** [April 16, 2021, 2:16pm UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/5 "2021-04-16T14:16:53Z")

</div>

Do you have gfortran installed on your machine?

---

<div class="post-metadata">

**Author:** ![ClairP](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@ClairP](https://community.freefem.org/u/ClairP)\
**Post date:** [April 16, 2021, 2:27pm UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/6 "2021-04-16T14:27:31Z")

</div>

yes…“gfortran est déjà la version la plus récente (4:9.3.0-1ubuntu2).” (latest version of gfortran)

---

<div class="post-metadata">

**Author:** ![ClairP](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@ClairP](https://community.freefem.org/u/ClairP)\
**Post date:** [April 16, 2021, 3:11pm UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/7 "2021-04-16T15:11:07Z")

</div>

Ok I found the way to solve it: I installed gfortran-7 and now I have the pb with libhdf5, but it is fixed by paolopiers, thx!

---

<div class="post-metadata">

**Author:** ![Thomas-debug-creator](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/thomas-debug-creator/32/756_2.png) [@Thomas-debug-creator](https://community.freefem.org/u/Thomas-debug-creator)\
**Post date:** [September 27, 2021, 8:06am UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/8 "2021-09-27T08:06:27Z")

</div>

Hi,  
I am on Ubuntu 20.04 and I get this error when trying to run FreeFem++:  
FreeFem++: /lib/x86\_64-linux-gnu/libc.so.6: version `GLIBC\_2.33’ not found (required by /u/sw/toolchains/gcc-glibc/11/pkgs/metis/5.1.0/lib/libmetis.so)

I tried downloading different versions of the deb package (4.9, 4.6, 4.7 etc…) but I always get this error.

Does anyone know how to fix that?

Best

---

<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:** [September 27, 2021, 9:02am UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/9 "2021-09-27T09:02:41Z")

</div>

Your own stuff (`/u/sw/toolchains/gcc-glibc/11/pkgs/metis/5.1.0/lib/libmetis.so`) is messing with the FreeFEM package.

---

<div class="post-metadata">

**Author:** ![Thomas-debug-creator](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/thomas-debug-creator/32/756_2.png) [@Thomas-debug-creator](https://community.freefem.org/u/Thomas-debug-creator)\
**Post date:** [September 29, 2021, 7:51am UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/10 "2021-09-29T07:51:35Z")

</div>

That’s interesting,  
What should I do then?  
It’s coming from a package called mk-modules I use for university

---

<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:** [September 29, 2021, 7:53am UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/11 "2021-09-29T07:53:28Z")

</div>

> It’s coming from a package called mk-modules I use for university

Still, it’s not OK that it’s being used globally and not strictly for your package. You need to figure out why this file is being used (maybe in your `LD_LIBRARY_PATH`?).

---

<div class="post-metadata">

**Author:** ![Thomas-debug-creator](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/thomas-debug-creator/32/756_2.png) [@Thomas-debug-creator](https://community.freefem.org/u/Thomas-debug-creator)\
**Post date:** [September 29, 2021, 7:56am UTC](https://community.freefem.org/t/installation-on-ubuntu-20-04/525/12 "2021-09-29T07:56:32Z")

</div>

Thank you very much you saved me I was stupid.  
This came from a package (mk modules) used in one of my courses for University, the module gcc-glibc was loaded by the bashrc file when opening a terminal, I just had to comment this line.

Thanks again!
