manodeep / Corrfunc

⚡️⚡️⚡️Blazing fast correlation functions on the CPU.
https://corrfunc.readthedocs.io
MIT License
163 stars 50 forks source link

Installation Error (can't find GSL) #262

Closed mokidm closed 2 months ago

mokidm commented 2 years ago

General information

Issue description

The installation of Corrfunc could not be completed due to a problem related to GSL library, which apparently cannot be found:

Image1

However, it looks like the library is already installed on the system (it is one of the libraries installed by default with CentOS 7, as can be checked using 'yum info gsl' command):

Image3

Expected behavior

GSL should have been detected as already installed, and therefore the installation of Corrfunc could be completed.

Actual behavior

GSL library is not detected as already installed, which results in an installation error.

What have you tried so far?

I have tried reinstalling GSL library in my personal directory, but it is not an option since I do not have the write permissions needed:

Image2

Minimal failing example

--

lgarrison commented 2 years ago

Corrfunc uses the gsl-config command to identify the location of the GSL library. If you run that in your shell, does it work?

If you know the location of your GSL library but gsl-config isn't working, you could either manually add it to your PATH or just set these variables in common.mk manually to point to your GSL library: https://github.com/manodeep/Corrfunc/blob/master/common.mk#L192-L194

Another option: I'm not too familiar with using conda in read-only environments, but is there an option for you to create an environment in your (writeable) home directory? If so, you could install GSL that way; conda GSL installations usually include gsl-config.

manodeep commented 2 years ago

I have a vague memory that this can be solved by installing the gsl-devel package (or libgsl-dev) - is it possible to try that?

Otherwise, a conda env might be the way to go

manodeep commented 2 months ago

@mokidm I am assuming this issue is resolved or not relevant for you. Closing the issue but please feel free to reopen if you need further help