Freefem++ installation error in Ubuntu 24.04

Dear all,I cannot install freefem in ubuntu. If you help I will be glad.

When I enter make install it gives these errors

mkdir: cannot create directory ‘/usr/local/lib/ff++’: Permission denied

Download failed (MD5 check 9b15ef07d3e8bd9eedf11bc3cd6f1f8f ) from https://www.ljll.fr/~tournier/boost_for_bemtool.tar.gz of boost_for_bemtool.tar.gz

ERROR2: INVALID MD5 for boost_for_bemtool.tar.gz 9b15ef07d3e8bd9eedf11bc3cd6f1f8f

Also when I run the command dpkg -i FreeFEM_VERSION_Ubuntu_withPETSc_amd64.deb to Download the package FreeFEM .deb, install it gives the error

dpkg: error: requested operation requires superuser privilege

  1. use the develop branch
  2. use the --prefix option

How can I do it could you explain further? Will I write them as commands?

When you install software on linux, you need administrator privilege.
Instead of typing just “command”, you must type
“sudo command” (it means to do as a superuser). Then the system asks you to give the administrator password for your computer. You need to do this for all of your commands, otherwise you get the messages “permission denied” or “requested operation requires superuser privilege”

Dear Professor,

Thank you for your help. Also it gives this error

Download failed (MD5 check 9b15ef07d3e8bd9eedf11bc3cd6f1f8f ) from https://www.ljll.fr/~tournier/boost_for_bemtool.tar.gz of boost_for_bemtool.tar.gz

Also when I command make - j4 , the terminal stops after a while.

I am following the instructions on the freefem page. Is there a different installation and compilation way? I have been dealing to install freefem for 5 days and I still have not done it yet

I don’t know about the “download failed”.
the last version is at

You have to choose either the .deb or the source code.
For the source code, the instructions are

You should not use make -j4, but make -j2 or simply make (it will take more time).
With the .deb it is easier.

Dear Professor

I downloaded deb file from git but now I don’t know what to do. I couldn’t find the instructions

With the .deb it is a standard installation procedure of compiled software for linux systems.
Probably you can do as

  1. update system
    sudo apt update
    sudo apt upgrade
  2. install gdebi if you don’t have it already
    sudo apt install gdebi
  3. install .deb
    sudo gdebi FreeFEM-4.15-amd64-ubuntu24.04.deb
1 Like

Dear Professor , I will try . Thank you so much.

You did not switch to the develop branch as I told you initially, hence you still have an issue.

Shall you explain it more explicitly?