Problem installation on Ubuntu 22.04

I installed a virtual machine Ubuntu 22.04 on my Mac. It is bases on ARM not AMD. So I try to compile from sources following the installation guide. I met an error when ‘make petsc-slepc‘. It shows as following

Does anyone know what’s wrong?

as the message says, you have to type
sudo apt install make
to install “make”
once “make” is installed, you can come back to
make petsc-slepc

I met a new problem while building/installing SLEPc.

The corresponding logs are shown as following:

configure.log (32.0 KB)

Does anyone know how to deal with it?

There are a couple of weird things going on on your system, e.g.:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

It may be because the ubuntu iso I installed is for server, let me try to install a desktop ubuntu and have a try.

I changed my system, however, still met an issue when make petsc-slepc.

The slepc.build.log shows

Checking environment… done
Checking PETSc installation… done
Checking LAPACK library… done
Checking SCALAPACK… done
Installing ARPACK version 3.9.1…
ERROR: --download-arpack requires that the command autoreconf is available on your PATH, or alternatively that PETSc has been configured with CMake
ERROR: See “installed-arch-linux2-c-opt/lib/slepc/conf/configure.log” file for details.

And the configure.log is as following

configure.log.pdf (51.2 KB)

Do you know how to deal with it?

one more question, when I try to install using binary package. There is an error shows

due to the package architecture dismatch.

Will a ubuntu deb file based on arm64 be released later?

I don’t know, but it’s always best to compile from the sources.

Do you know how to deal with it?

Have you read the error message? Can’t be really more expressive than it currently is…

ERROR: --download-arpack requires that the command autoreconf is available on your PATH, or alternatively that PETSc has been configured with CMake

Thanks for your reply. Now I reach this procedure

make -j<nbProcs>

and meet a new problem, as following

It seems to be that the config.guess and config.sub files need to be updated. The I download the latest version manually via

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD

and

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

Then I replace the old files with my new download files and

make -j<nbProcs>

again. However, it still fails as the same problem, and config.guess, config.sub files return to the old version. Should I do ./configure or something else to ensure that config.guess, config.sub files are the latest version?

My best guess would be to simply disable NLopt.

Sorry, may I ask which command can disable Nlopt?

Try --disable-nlopt in FreeFEM ./configure line.

Many thanks! It is installed successfully and I can now use ff-mpirun to run parallel examples.