From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17588 invoked by alias); 12 Aug 2002 13:32:55 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 17581 invoked from network); 12 Aug 2002 13:32:52 -0000 Received: from unknown (HELO carol.mecha.uni-stuttgart.de) (129.69.41.211) by sources.redhat.com with SMTP; 12 Aug 2002 13:32:52 -0000 Received: from mecha.uni-stuttgart.de (lisa.mecha.uni-stuttgart.de [129.69.41.209]) by carol.mecha.uni-stuttgart.de (8.11.6+Sun/8.11.6) with ESMTP id g7CDWld17611; Mon, 12 Aug 2002 15:32:47 +0200 (MET DST) Message-ID: <3D57BAB0.CEE84DA6@mecha.uni-stuttgart.de> Date: Mon, 12 Aug 2002 06:32:00 -0000 From: Nils Wagner X-Accept-Language: en MIME-Version: 1.0 To: keith.briggs@bt.com CC: gsl-discuss@sources.redhat.com Subject: Re: Error while loading shared libraries References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q3/txt/msg00125.txt.bz2 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 > > #include > > > > 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