error: No math library found!

eSASS download and installation
lidawei
Posts: 28
Joined: Thu Nov 25, 2021 5:30 am

error: No math library found!

Post by lidawei »

Hi everyone
When I entered autoreconf -i, I got these at the end:
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, './m4/'.
libtoolize: You should add the contents of './m4//libtool.m4' to 'aclocal.m4'.
libtoolize: You should add the contents of './m4//ltoptions.m4' to 'aclocal.m4'.
libtoolize: You should add the contents of './m4//ltsugar.m4' to 'aclocal.m4'.
libtoolize: You should add the contents of './m4//ltversion.m4' to 'aclocal.m4'.
libtoolize: You should add the contents of './m4//lt~obsolete.m4' to 'aclocal.m4
I don’t understand what these mean, but I continue to do it.

When I entered ./configure --with-caldb=yes --with-healpix=/<my eSASS path>/external/Healpix_3.50 --with-headas=$HEADAS --with-gsl=compile --with-fftw=compile --with-lapack=compile, I got it:
error: No math library found!

If anyone know about it, please tell me how to do with it. Thank you!

Regards
Dawei Li
MiriamRamos
Posts: 24
Joined: Wed Jun 23, 2021 11:46 am

Re: error: No math library found!

Post by MiriamRamos »

Hi,

As written in the guidelines: after autoreconf -i you should type the command aclocal. This will take care of the Warning you have.

Can you tell us which Ubuntu version you are using and which version of the compiler (gcc) you have?

Best regards,
Miriam
lidawei
Posts: 28
Joined: Thu Nov 25, 2021 5:30 am

Re: error: No math library found!

Post by lidawei »

MiriamRamos wrote: Mon Nov 29, 2021 11:49 am Hi,

As written in the guidelines: after autoreconf -i you should type the command aclocal. This will take care of the Warning you have.

Can you tell us which Ubuntu version you are using and which version of the compiler (gcc) you have?

Best regards,
Miriam
Dear Miriam
Thanks for your reply.
In fact I have typed aclocal after autoreconf -i, but when I typed:
./configure --with-caldb=yes --with-healpix=/<my eSASS path>/external/Healpix_3.50 --with-headas=$HEADAS --with-gsl=compile --with-fftw=compile --with-lapack=compile
I got it: error: No math library found!

My Ubuntu version is 21.04, and my gcc compiler version is 10.3.

Best regards
Dawei Li
MiriamRamos
Posts: 24
Joined: Wed Jun 23, 2021 11:46 am

Re: error: No math library found!

Post by MiriamRamos »

Hi,

Unfortunately, as of November 2021 eSASS4EDR does not work for Ubuntu 20.04 and above versions.

We recommend using the Docker installation instead. Please have a look at this link:

https://erosita.mpe.mpg.de/edr/DataAnal ... cker_setup

Best regards,

Miriam
lidawei
Posts: 28
Joined: Thu Nov 25, 2021 5:30 am

Re: error: No math library found!

Post by lidawei »

MiriamRamos wrote: Mon Nov 29, 2021 1:50 pm Hi,

Unfortunately, as of November 2021 eSASS4EDR does not work for Ubuntu 20.04 and above versions.

We recommend using the Docker installation instead. Please have a look at this link:

https://erosita.mpe.mpg.de/edr/DataAnal ... cker_setup

Best regards,

Miriam
Dear MiriamRamos,
Although this news is terrible to me, thank you for telling me it. Next I will learn how to use Docker.
Thank you.

Best regards,
Dawei Li
mccammon
Posts: 1
Joined: Sat Mar 19, 2022 1:55 am

Re: error: No math library found!

Post by mccammon »

Also getting this "math library not found" error. But from the instructions, it sounds like the incompatibility is for gcc > 8. So I tried installing gcc-8.4 and redoing everything, with CC = gcc-8.4, but still get the same "math library not found" error. Are there other incompatibilities with 20.04?
User avatar
AlainGueguen
Posts: 36
Joined: Mon Jun 28, 2021 12:06 pm

Re: error: No math library found!

Post by AlainGueguen »

mccammon wrote: Sat Mar 19, 2022 2:02 am Also getting this "math library not found" error. But from the instructions, it sounds like the incompatibility is for gcc > 8. So I tried installing gcc-8.4 and redoing everything, with CC = gcc-8.4, but still get the same "math library not found" error. Are there other incompatibilities with 20.04?
as said in the documentation in this page https://erosita.mpe.mpg.de/edr/DataAnal ... stall.html section 2.2
"eSASS4EDR does not work on Ubuntu 20.04"
Few person succeeded to compile it on this version but there is no standard method to do it. and we don't offer support for this.
If you join the error message in the config.log file. someone on the forum could perhaps identify the problem but without any Guarantee.

for Ubuntu 20 we suggest to use the Docker version
flaviodamico
Posts: 1
Joined: Tue May 02, 2023 12:56 pm

Re: error: No math library found!

Post by flaviodamico »

Dear Maria;

-- this was my first attempt to compile healpix, and it didn't work .....

-- I'm also getting the message "no math library found"

-- relevant info is below:

------------------

Distributor ID: LinuxMint
Description: Linux Mint 19.3 Tricia
Release: 19.3
Codename: tricia
------------------

gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

------------------

gfortran is also 7.5.0

------------------

Heasoft is version 6.27.2 - i.e., libcfitsio.a is (probably) greater than 3.44

------------------

-- as suggested, Maria, I did the whole

$ autoreconf -i

$ aclocal

$ ./configure --with-caldb=..........--with-lapack=compile

-- any suggestion is very welcome, and I'm thanking ya in advance

Yours,
flavio d'amico
User avatar
AlainGueguen
Posts: 36
Joined: Mon Jun 28, 2021 12:06 pm

Re: error: No math library found!

Post by AlainGueguen »

Dear Flavio,

from your message it seems that you are using LinuxMint.
the eSASS team never test eSASS on this linux distribution and does not have access to any machine running this system.
so we can't provide support on this one.
like described here :https://erosita.mpe.mpg.de/edr/DataAnal ... cker_setup
we support only Ubuntu up to 18 and for other system we provide a Docker version.

On ubuntu the "No math library found" message is mostly originating from not supported gfortran version, but also could originate from missing package
like libc6-dev (or equivalent name )
The only think i can suggest is that you search on your machine if a file libm.so exist, if not try to install it.

Best Regards
Alain on behalf on the eSASS team
zjtaixuexi777
Posts: 2
Joined: Mon Sep 11, 2023 1:35 pm

Re: error: No math library found!

Post by zjtaixuexi777 »

I also encountered the same problem, which is “no math library found“.
relevant info is below:
Ubuntu 18.04.5 LTS
gcc version 7.5.0
GNU Fortran 7.5.0

Any suggestion is very welcome

Yours,
Jintao Zheng
Post Reply