Installation of FreeFem++ on Ubuntu virtual machine

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.
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!

Follow these instructions instead GitHub - FreeFem/FreeFem-sources: FreeFEM source code.

1 Like

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!

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).

1 Like

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!

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

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”

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.

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)

Are you using miniconda by any chance?

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)?

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!

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

1 Like

config.log (153.8 KB)
configure.log.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.logbecause it was too large. I hope it is ok.

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?

1 Like

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

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.

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

1 Like