Hello,
I am trying to install FreeFem++ 4.6 from source on a freshly installed Ubuntu 22.04.3 LTS (installed on new computer).
I follow the instructions at Installation guide
The “make” produces a fatal error when building 3rdparty/mmg with many line messages similar to:
/usr/bin/ld : lib/libmmg2d.a(anisosiz_2d.c.o):/home/install/FreeFem-sources-4.6/3rdparty/mmg/mmg-sources/src/common/mmgexterns.c:36 : définitions multiples de « MMG5_renumbering »; lib/libmmg2d.a(mmg.c.o):/home/install/FreeFem-sources-4.6/3rdparty/mmg/mmg-sources/src/common/mmg.c:49 : défini pour la première fois ici
/usr/bin/ld : lib/libmmg2d.a(anisosiz_2d.c.o):/home/install/FreeFem-sources-4.6/3rdparty/mmg/mmg-sources/src/common/mmgexterns.c:34 : définitions multiples de « MMG5_compute_meanMetricAtMarkedPoints »; lib/libmmg2d.a(mmg.c.o):/home/install/FreeFem-sources-4.6/3rdparty/mmg/mmg-sources/src/common/mmg.c:44 : défini pour la première fois ici
Please start from scratch (rm your FreeFem-sources folder and clone/download again), you are probably trying to do make petsc-slepc from FreeFEM 4.6, which is obsolete. There is no occurence of env python in neither FreeFEM nor PETSc, so you are using outdated files. The newer versions are using python3 indeed.
I started from scratch, I followed instructions at
when doing “make petsc-slepc” I still get:
/usr/bin/env: «python»: Aucun fichier ou dossier de ce type
make: *** [Makefile:210 : petsc-3.13.0/tag-conf-real] Erreur 127
it looks for a file or directory named “python”, not for a command!
maybe it is related to a previous error message “dirname: opérande manquant”,
see the terminal output in attached file make-petsc-slepc.log (1.2 KB)
I have looked in which source files the word “/usr/bin/env” appears (under the ff-petsc directory). I obtained the attached results findenv.log (6.5 KB)
It occurs followed by “python”, which is the problem!
I see this in your log: cd petsc-3.13.0 && ./configure MAKEFLAGS='' \.
No, you did not start from scratch, FreeFEM 4.14 installs PETSc 3.20, you are stuck with old versions of both FreeFEM and PETSc, do not expect this to work until you switch to newer versions.
This FreeFem4.14 source works! I got some warning messages like
Warning “argument mismatch” apparently related to the gfortran version (I have gfortran-11)
Also the make check has some error on testvtk.edp makecheck.log (1.9 KB)
This is not a problem for me.
Thanks a lot PRJ (what is your name?). It is rather difficult to find on the web the installation procedure that is best adapted to one’s config (apt install freefem? freefem.deb ? sources (which ones)? commands to compile sources…
Fortunately you gave me personal help, which I appreciated a lot.
Francois.
Thank you. Indeed I was mistaken by two things:
– The web page I mentioned, that says that 4.6 is the last version
– 4.14 < 4.6 (for which my computer agrees with)