Closed pbakalov closed 7 years ago
The GSL manual actually gives that as the solution.
For now that'll be a work around, but I think we can force cmake to load the full path and not rely on LD_LIBRARY_PATH
After some digging, it appears this is because in Ubuntu the GSL install path is an implicit search path. No matter what I've tried, I can't seem to get the RPATH
for GSL to link under Ubuntu, but it is working for OSX...
OK. So what should we do? Would specifying -DGSL_ROOT_DIR=... help and enforce the path?
If this is the solution in the GSL manual, maybe it's not such a sloppy workaround, after all.
I guess it's good enough for me. Many thanks!
OK. Closing this despite not actually having a decent and useful solution.
All tests fail with this error:
./test/default_modelTest: error while loading shared libraries: libgsl.so.23: cannot open shared object file: No such file or directory
One can fix this by doing:
$ LD_LIBRARY_PATH=/usr/local/lib/
$ export LD_LIBRARY_PATH
(or add something in that spirit to one's ~/.bashrc).
This doesn't seem to be a very neat workaround + probably it's not how things are intended to work.
Where could the problem be and is there another way to fix that?
P.S. The output of the configuration can be found here.