Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread Jordi Gutierrez Hermoso
On 23/04/07, Joseph Wakeling <[EMAIL PROTECTED]> wrote: Jordi Gutierrez Hermoso wrote: > I don't understand one thing. Why are you compiling, instead of using > apt-get? The Ubuntu apt repositories only contain 1.8, I wanted to use 1.9. I'm not aware of other repositories for GSL ... ? If the

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread Joseph Wakeling
Jordi Gutierrez Hermoso wrote: > I don't understand one thing. Why are you compiling, instead of using > apt-get? The Ubuntu apt repositories only contain 1.8, I wanted to use 1.9. I'm not aware of other repositories for GSL ... ? In any case having started I wanted to understand why what I was

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread Jordi Gutierrez Hermoso
On 23/04/07, Joseph Wakeling <[EMAIL PROTECTED]> wrote: I've installed gsl 1.9 from source on Ubuntu 7.04 and am having trouble linking programs with the library. I don't understand one thing. Why are you compiling, instead of using apt-get? Curious, - Jordi G. H. ___

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread Joseph Wakeling
Patrick Alken wrote: > Put /usr/local/lib in /etc/ld.so.conf and run "ldconfig". Then type > "ldconfig -v | grep gsl" and make sure its got an entry for libgsl - > if it does, gcc ... -lgsl -lgslcblas should work fine from any shell. Thank you very much---exactly what I was looking for! A big tha

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread Patrick Alken
> OK. To be honest I'm not too sure about how these aspects of UNIX work. > Would this mean that only I can use the shared library, and that I can > only access it from within the bash shell? Are there any more general > means for telling the system, "Look in /usr/local/lib as well as /usr/lib"?

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread Brian Gough
At Mon, 23 Apr 2007 17:05:58 +0100, Joseph Wakeling wrote: > OK. To be honest I'm not too sure about how these aspects of UNIX work. > Would this mean that only I can use the shared library, and that I can > only access it from within the bash shell? Are there any more general > means for tellin

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread Joseph Wakeling
John Pye wrote: > That works, but it's very naughty. You should only install to /usr > indirectly, eg by creating an packaged installation such as an RPM or > DEB file. Yes, true. There's a nice explanation of why it's a bad idea here: http://hivelogic.com/narrative/articles/using_usr_local > A

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread John Pye
Joseph Wakeling wrote: > I tried an alternative route, also with success: when preparing for the > install, typing, > > ./configure --prefix=/usr > make > sudo make install > > which works without any further ado as this places the library > where the system expects to find it. > That work

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread Joseph Wakeling
John Pye wrote: > Did you try typing > > export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib > > then running again? Damn! I knew there was something I'd forgotten. I tried an alternative route, also with success: when preparing for the install, typing, ./configure --prefix=/usr make sudo make ins

Re: [Help-gsl] Linking problems with gsl

2007-04-23 Thread John Pye
Hi Joseph, Did you try typing export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib then running again? Cheers JP Joseph Wakeling wrote: > I've installed gsl 1.9 from source on Ubuntu 7.04 and am having trouble > linking programs with the library. > > My Makefile includes the use of C flags -I/usr/lo

[Help-gsl] Linking problems with gsl

2007-04-23 Thread Joseph Wakeling
I've installed gsl 1.9 from source on Ubuntu 7.04 and am having trouble linking programs with the library. My Makefile includes the use of C flags -I/usr/local/include and -L/usr/local/lib along with the library calls -lgsl, -lgslcblas and -lm. However, when I attempt to run the program I still g