* Re: Error while loading shared libraries
[not found] <F66469FCE9C5D311B8FF0000F8FE9E070EF9C083@mbtlipnt03.btlabs.bt.co.uk>
@ 2002-08-12 6:32 ` Nils Wagner
0 siblings, 0 replies; 2+ messages in thread
From: Nils Wagner @ 2002-08-12 6:32 UTC (permalink / raw)
To: keith.briggs; +Cc: gsl-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Error while loading shared libraries
@ 2002-08-12 6:25 Nils Wagner
0 siblings, 0 replies; 2+ messages in thread
From: Nils Wagner @ 2002-08-12 6:25 UTC (permalink / raw)
To: gsl-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-12 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <F66469FCE9C5D311B8FF0000F8FE9E070EF9C083@mbtlipnt03.btlabs.bt.co.uk>
2002-08-12 6:32 ` Error while loading shared libraries Nils Wagner
2002-08-12 6:25 Nils Wagner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).