gsl dynamically linked on linux
mlin opened this issue · comments
mikelin@core:~/src/PhyloCSF$ ./PhyloCSF
/home/mikelin/src/PhyloCSF/bin/PhyloCSF.Linux.i686: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
mikelin@core:~/src/PhyloCSF$ sudo apt-get install libgsl0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libgsl0ldbl
Suggested packages:
gsl-ref-psdoc gsl-doc-pdf gsl-ref-html
The following NEW packages will be installed:
libgsl0-dev libgsl0ldbl
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 2179kB of archives.
After this operation, 7516kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.ubuntu.com hardy/main libgsl0ldbl 1.10-4 [830kB]
Get:2 http://archive.ubuntu.com hardy/main libgsl0-dev 1.10-4 [1349kB]
Fetched 2179kB in 23s (92.0kB/s)
Selecting previously deselected package libgsl0ldbl.
(Reading database ... 18081 files and directories currently installed.)
Unpacking libgsl0ldbl (from .../libgsl0ldbl_1.10-4_i386.deb) ...
Selecting previously deselected package libgsl0-dev.
Unpacking libgsl0-dev (from .../libgsl0-dev_1.10-4_i386.deb) ...
Setting up libgsl0ldbl (1.10-4) ...
Setting up libgsl0-dev (1.10-4) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
then it's relatively OK
For those that can't install packages (no admin access), this worked for me to solve the "error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory" problem:
$ LD_LIBRARY_PATH=/usr/local/lib
$ export LD_LIBRARY_PATH