Install notes for Ubuntu 24.04.1

Post Reply
JohannesBuchner
Posts: 2
Joined: Thu May 04, 2023 12:16 pm

Install notes for Ubuntu 24.04.1

Post by JohannesBuchner »

I was following the install instructions at https://erosita.mpe.mpg.de/dr1/eSASS4DR ... tallation/ for the eRO-SDAS workshop.

Here are my notes on Ubuntu 24.04.1:

1) fftw3 is not a ubuntu package. "sudo apt-get install libfftw3-dev" is enough and works

2) for cfitsio, one needs to install "libcfitsio-dev" to get libcfitsio.a, standard cfitsio only gives the shared library (.so). Then the library is at /usr/lib/x86_64-linux-gnu/libcfitsio.a

3) I had heasoft already, but got the error that xanlib is missing. So not only heasoft needs to be installed, but it also needs to be built to include xanadu. By default (without configuring), this is the case, so should not be a problem, except for users who have a stripped-down version for sing xspec primarily.

Maybe these can be added to the documentation.
JohannesBuchner
Posts: 2
Joined: Thu May 04, 2023 12:16 pm

Re: Install notes for Ubuntu 24.04.1

Post by JohannesBuchner »

On another Ubuntu machine, I managed to get until the eSASS ./configure script, but it kept throwing the error "healpix not found", even though I gave a valid path (--with-healpix=/full/path/to/external/Healpix_3.50/).
Looking into config.log, there are compilation errors towards the end (but not all the way at the end of the file), all starting with "undefined reference to `omp_...`".
The first one is "Undefined reference to `omp_get_max_threads`.

The solution is to add -fopenmp as a compile flag:

Code: Select all

CFLAGS="-fopenmp" FFLAGS="-fopenmp" ./configure ...
To use the system-installed cfitsio, "conda deactivate" was also needed, otherwise it picked up the wrong compiler and gave "gfortran could not be linked with ...".
Post Reply