This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
shared library problem
- From: "Chi-Ho Cheng" <phcch at hotmail dot com>
- To: <gsl-discuss at sources dot redhat dot com>
- Date: Thu, 19 Jun 2003 17:19:00 +0800
- Subject: shared library problem
Hi,
I am new to both GSL and Linux.
Recently I installed GSL-1.3 in my Mandrake Linux release 9.0
I tried an example program appearing in reference manual,
/* gsltest.c */
#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;
}
and compile it under the following procedure,gcc -c gsltest.c gcc
gsltest.o -lgsl -lgslcblasThere's no error in generating an executing file,
but an error message comes after execution,a.out: error while loading shared
libraries: libgsl.so.0:cannot open shared object file: No such file or
directoryI checked there's indeed libgsl.so.0 in /usr/local/libAm I missing
something?Thanks.Chiho