# Error running FreeFem++ in ubuntu 19.04

**URL:** <https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45>\
**Category:** FreeFEM installation\
**Created:** [May 7, 2019, 1:45pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45 "2019-05-07T13:45:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcabrales](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/rcabrales/32/24_2.png) [@rcabrales](https://community.freefem.org/u/rcabrales)\
**Post date:** [May 7, 2019, 1:45pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/1 "2019-05-07T13:45:38Z")

</div>

Hello there. I get the following error after install FreeFem++ 4.0 on ubuntu 19.04

```auto
FreeFem++: error while loading shared libraries: libhdf5.so.103: cannot open shared object file: No such file or directory

```

Can you help me please?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![simon.garnotel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/simon.garnotel/32/11_2.png) [@simon.garnotel](https://community.freefem.org/u/simon.garnotel)\
**Post date:** [May 7, 2019, 1:51pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/2 "2019-05-07T13:51:43Z")

</div>

Hi,

Did you use the deb package ? If yes, this is a package for Ubuntu 18.04.  
Prefer use the [AppImage package](https://github.com/FreeFem/FreeFem-sources/releases/download/v4.1/FreeFem-4.1-x86_64.AppImage) of FreeFEM 4.1-beta.

Is this solved your problem ?

---

<div class="post-metadata">

**Author:** ![rcabrales](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/rcabrales/32/24_2.png) [@rcabrales](https://community.freefem.org/u/rcabrales)\
**Post date:** [May 7, 2019, 1:55pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/3 "2019-05-07T13:55:57Z")

</div>

Hi. I follow the instructions in page 5 of the FreeFem Documentation Release 4.0. I will try your sugestion.

Regards.

---

<div class="post-metadata">

**Author:** ![simon.garnotel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/simon.garnotel/32/11_2.png) [@simon.garnotel](https://community.freefem.org/u/simon.garnotel)\
**Post date:** [May 7, 2019, 2:00pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/4 "2019-05-07T14:00:32Z")

</div>

You have this error while compiling FreeFEM ?

This is really strange, could you post the return of:

```auto
ls /usr/lib/libhdf5.so*

```

For example, on Arch Linux, I have:

```auto
/usr/lib/libhdf5.so /usr/lib/libhdf5.so.103 /usr/lib/libhdf5.so.103.1.0

```

Did you have some compilations errors ? Did you perform a `make check` ?

---

<div class="post-metadata">

**Author:** ![rcabrales](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/rcabrales/32/24_2.png) [@rcabrales](https://community.freefem.org/u/rcabrales)\
**Post date:** [May 7, 2019, 2:11pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/5 "2019-05-07T14:11:34Z")

</div>

The answer for ls /usr/lib/libhdf5.so\* was  
ls: no se puede acceder a ‘/usr/lib/libhdf5.so\*’: No existe el archivo o el directorio

in english is someone like:  
ls: can’t access to ‘/usr/lib/libhdf5.so\*’: File or directory doesn’t exists

However, if I write locate libhdf5.so gives  
/home/robertocabrales/anaconda3/lib/libhdf5.so  
/home/robertocabrales/anaconda3/lib/libhdf5.so.103  
/home/robertocabrales/anaconda3/lib/libhdf5.so.103.0.0  
/home/robertocabrales/anaconda3/pkgs/hdf5-1.10.4-hb1b8bf9\_0/lib/libhdf5.so  
/home/robertocabrales/anaconda3/pkgs/hdf5-1.10.4-hb1b8bf9\_0/lib/libhdf5.so.103  
/home/robertocabrales/anaconda3/pkgs/hdf5-1.10.4-hb1b8bf9\_0/lib/libhdf5.so.103.0.0  
/usr/lib/x86\_64-linux-gnu/hdf5/serial/libhdf5.so  
/usr/local/MATLAB/R2018a/bin/glnxa64/libhdf5.so.8  
/usr/local/MATLAB/R2018a/bin/glnxa64/libhdf5.so.8.0.1

I’m trying to install again by following the instructions on page 5 of the documentation.

---

<div class="post-metadata">

**Author:** ![simon.garnotel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/simon.garnotel/32/11_2.png) [@simon.garnotel](https://community.freefem.org/u/simon.garnotel)\
**Post date:** [May 7, 2019, 2:19pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/6 "2019-05-07T14:19:05Z")

</div>

I think FreeFEM has to use `/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so` and not the anaconda version.  
@frederichecht did you know how to force the good hdf5 library to be used ?

@rcabrales If you do not use hdf5 you could add `--disable-hdf5` in the `./configure` step

---

<div class="post-metadata">

**Author:** ![rcabrales](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/rcabrales/32/24_2.png) [@rcabrales](https://community.freefem.org/u/rcabrales)\
**Post date:** [May 7, 2019, 2:34pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/7 "2019-05-07T14:34:51Z")

</div>

Ok. But, I don’t have idea if my programs use this library…

---

<div class="post-metadata">

**Author:** ![simon.garnotel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/simon.garnotel/32/11_2.png) [@simon.garnotel](https://community.freefem.org/u/simon.garnotel)\
**Post date:** [May 7, 2019, 2:36pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/8 "2019-05-07T14:36:28Z")

</div>

It is the case if you use `savehdf5sol` function in your edp script.  
If not you can disable it

---

<div class="post-metadata">

**Author:** ![rcabrales](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/rcabrales/32/24_2.png) [@rcabrales](https://community.freefem.org/u/rcabrales)\
**Post date:** [May 7, 2019, 3:04pm UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/9 "2019-05-07T15:04:10Z")

</div>

> [@simon.garnotel](#):
>
> –disable-hdf5

Here is a part of the result after the command make check…

```auto
============================================================================
Testsuite summary for FreeFem++ 4.0
============================================================================
# TOTAL: 38
# PASS: 0
# SKIP: 0
# XFAIL: 14
# FAIL: 24
# XPASS: 0
# ERROR: 0

```

---

<div class="post-metadata">

**Author:** ![Jiaqi-knight](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@Jiaqi-knight](https://community.freefem.org/u/Jiaqi-knight)\
**Post date:** [May 13, 2020, 2:50am UTC](https://community.freefem.org/t/error-running-freefem-in-ubuntu-19-04/45/10 "2020-05-13T02:50:41Z")

</div>

“#” the anconda-hdf5 bin in bashrc, and recompile it .
