shared library problem

Chi-Ho Cheng phcch@hotmail.com
Thu Jun 19 09:28:00 GMT 2003


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



More information about the Gsl-discuss mailing list