This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]