Comments (8)
Thanks for the report! Just to confirm, it looks like this is on a Mac? Can you provide your operating system version?
Usually a shared library issue like this happens when Corrfunc is installed in an environment where a library is available (GSL, in this case) and is then executed in a different environment where that library is not available. So you might want to double-check that you are installing and running in the same shell environment, same modules (if applicable), same conda env, etc.
On the other hand, it looks like we're inserting the GSL path via rpath
here, so I would have expected this to be pretty robust.
@manodeep might have to lend his Mac expertise here!
(I added some formatting to your comment for readability.)
from corrfunc.
MacOS 12.5
I think I've only got one conda environment (a fresh install on a new machine), and a new install of gsl 2.7 (make installcheck gave no errors).
from corrfunc.
Corrfunc finds GSL via the gsl-config
executable e.g. here. If you use gsl-config --prefix
, does it show the GSL that you installed?
from corrfunc.
Seems OK:
(base) loveday@mps024704 gsl-2.7 % gsl-config --prefix
/usr/local
(base) loveday@mps024704 gsl-2.7 % ls /usr/local
bin include munki sbin
etc lib munkireport share
(base) loveday@mps024704 gsl-2.7 % ls /usr/local/lib
libgsl.25.dylib libgsl.la libgslcblas.dylib
libgsl.a libgslcblas.0.dylib libgslcblas.la
libgsl.dylib libgslcblas.a pkgconfig
(base) loveday@mps024704 gsl-2.7 %lsa /usr/local/lib
total 35592
drwxr-xr-x 11 root wheel 352 26 Aug 15:15 .
drwxr-xr-x 10 root wheel 320 26 Aug 15:15 ..
-rwxr-xr-x 1 root wheel 3225164 26 Aug 15:15 libgsl.25.dylib
-rw-r--r-- 1 root wheel 13588280 26 Aug 15:15 libgsl.a
lrwxr-xr-x 1 root wheel 15 26 Aug 15:15 libgsl.dylib -> libgsl.25.dylib
-rwxr-xr-x 1 root wheel 910 26 Aug 15:15 libgsl.la
-rwxr-xr-x 1 root wheel 266368 26 Aug 15:15 libgslcblas.0.dylib
-rw-r--r-- 1 root wheel 1124448 26 Aug 15:15 libgslcblas.a
lrwxr-xr-x 1 root wheel 19 26 Aug 15:15 libgslcblas.dylib -> libgslcblas.0.dylib
-rwxr-xr-x 1 root wheel 937 26 Aug 15:15 libgslcblas.la
drwxr-xr-x 3 root wheel 96 26 Aug 15:15 pkgconfig
(base) loveday@mps024704 gsl-2.7 %
from corrfunc.
I agree, looks okay. You might try installing from source, although I'm not sure why that would be different. You might also try export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
(or Mac equivalent), although I would have thought that path would already be there.
@manodeep, can you take a look at this when you get the chance? A quick search brings up this (old) post which suggests the rpath syntax on MacOS is different than on Linux, could be relevant? https://stackoverflow.com/questions/4513799/how-to-set-the-runtime-path-rpath-of-an-executable-with-gcc-under-mac-osx
from corrfunc.
@JonLoveday If you just want to fix the issue, then the fastest way would be to uninstall Corrfunc, install gsl through conda (conda install -c conda-forge gsl), and then re-install Corrfunc (python -m pip install Corrfunc).
If you want to debug what’s going, then I would first uninstall Corrfunc, and then install Corrfunc from source (ie git clone https://github.com/manodeep/Corrfunc) and then check if the regular install is working through - make && make tests. If that all works out (as expected), then please install the python wrappers with python -m pip —verbose install . &>install.log from the Corrfunc root directory (not sure how to enable verbose with the -m pip). The problem should still remain but at least we will be able to see what’s happening with the install paths.
from corrfunc.
Many thanks Manodeep. Reinstalling gsl via conda did the trick, and was much faster than installing from source.
Cheers, Jon
from corrfunc.
Great - glad that the issue got sorted!
from corrfunc.
Related Issues (20)
- script hangs when using unbuffered output HOT 17
- separation average HOT 7
- ld: library not found for -liomp5 when installing HOT 5
- DDsmu and DDsmu_mocks give different results HOT 4
- cz vs z check and fixing by speed of light on comoving distances HOT 2
- Can't install Corrfunc on google colab HOT 2
- pytest fails on local supercomputer (Skylake cpus) HOT 3
- Custom compiler instruction for pip does not work HOT 2
- Corrfunc DDtheta_mocks DEC range HOT 4
- Some questions about API and integrated test suite HOT 4
- GitHub CI runners need to be updated
- Add asv benchmarks HOT 1
- M2 compiling issues HOT 22
- DDtheta: numerical stability of small angular separation in float32 HOT 14
- Help with installing on macOS Ventura 13 HOT 3
- Xi from LRGs.dat HOT 3
- Option to use S/DGEMM within lattice-pairs HOT 11
- Readthedocs build fails on changing the CPython interpreter to 3.x HOT 1
- Add new AVX/SSE calls for cos/sin functions HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corrfunc.