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]

Re: Error while loading shared libraries


keith.briggs@bt.com schrieb:
> 
> gcc -o example example.o -L/usr/local/lib -lgsl -lgslcblas
> perhaps?
> 
>         Dr. Keith M. Briggs
>         Senior Mathematician, Complexity Research, BTexact Technologies
> 
>         email: Keith.Briggs@bt.com
>         phone: +44(0)1473  work: 641 911 home: 610 517  fax: 647 410
>         web:  (work)     http://more.btexact.com/people/briggsk2/
>         web:  (private) http://members.lycos.co.uk/keithmbriggs/
>         mail: Keith Briggs, Antares 2pp5, Adastral Park, Martlesham, Suffolk
> IP5 3RE, UK
> 
>         BTexact Technologies is a trademark of British Telecommunications
> plc
>         Registered office: 81 Newgate Street London EC1A 7AJ
>         Registered in England no. 1800000
> 
>         This electronic message contains information from British
> Telecommunications plc which may be privileged or confidential. The
> information is intended to be for the use of the individual(s) or entity
> named above. If you are not the intended recipient be aware that any
> disclosure, copying, distribution or use of the contents of this information
> is prohibited. If you have received this electronic message in error, please
> notify us by telephone or email (to the numbers or address above)
> immediately.
> 
> > -----Original Message-----
> > From: Nils Wagner [SMTP:nwagner@mecha.uni-stuttgart.de]
> > Sent: Monday, August 12, 2002 2:33 PM
> > To:   gsl-discuss@sources.redhat.com
> > 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

Sorry, I forgot typing ldconfig

Nils


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