This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Error while loading shared libraries
- From: Nils Wagner <nwagner at mecha dot uni-stuttgart dot de>
- To: gsl-discuss at sources dot redhat dot com
- Date: Mon, 12 Aug 2002 15:32:59 +0200
- Subject: Error while loading shared libraries
Hi,
I have installed gsl-1.2 on SuSE8.0
I tried to run my first example.
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int
main (void)
{
double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf("J0(%g) = %.18e\n", x, y);
return 0;
}
gcc -c example.c
gcc -o example example.o -lgsl -lgslcblas
This is the result
./example: error while loading shared libraries: libgsl.so.0: cannot
open shared object file: No such file or directory
-rw-r--r-- 1 root root 12209136 Aug 12 13:44
/usr/local/lib/libgsl.a
-rwxr-xr-x 1 root root 702 Aug 12 13:44
/usr/local/lib/libgsl.la
lrwxrwxrwx 1 root root 15 Aug 12 13:44
/usr/local/lib/libgsl.so -> libgsl.so.0.3.0
lrwxrwxrwx 1 root root 15 Aug 12 13:44
/usr/local/lib/libgsl.so.0 -> libgsl.so.0.3.0
-rwxr-xr-x 1 root root 4715330 Aug 12 13:44
/usr/local/lib/libgsl.so.0.3.0
-rw-r--r-- 1 root root 1286446 Aug 12 13:44
/usr/local/lib/libgslcblas.a
-rwxr-xr-x 1 root root 737 Aug 12 13:44
/usr/local/lib/libgslcblas.la
lrwxrwxrwx 1 root root 20 Aug 12 13:44
/usr/local/lib/libgslcblas.so -> libgslcblas.so.0.0.0
lrwxrwxrwx 1 root root 20 Aug 12 13:44
/usr/local/lib/libgslcblas.so.0 -> libgslcblas.so.0.0.0
-rwxr-xr-x 1 root root 582166 Aug 12 13:44
/usr/local/lib/libgslcblas.so.0.0.0
Any suggestion ?
Nils