From: Mark Bennett Date: 2005-01-11T07:38:37+09:00 Subject: Re: Problems Using rb-gsl Yoshiki: Thank-you for your help I really appreciate it! I did the things you suggested in your last email. 1) rb_gsl.so seems correct [mark@www rb-gsl-1.6.0]$ ls -la /usr/local/lib/ruby/site_ruby/1.8/i686-linux/ total 1556 drwxr-xr-x 2 root root 4096 Jan 10 15:40 . drwxr-xr-x 4 root root 4096 Jan 10 15:19 .. -rw-r--r-- 1 root root 143 Jan 10 15:18 narray_config.h -rw-r--r-- 1 root root 4823 Jan 4 2004 narray.h -rwxr-xr-x 1 root root 343577 Jan 10 15:19 narray.so -r-xr-xr-x 1 root root 1218609 Jan 10 15:40 rb_gsl.so [mark@www rb-gsl-1.6.0]$ md5sum ext/rb_gsl.so 7e8fb48ce8c6c12e76b05fe2c46e0b20 ext/rb_gsl.so [mark@www rb-gsl-1.6.0]$ md5sum /usr/local/lib/ruby/site_ruby/1.8/i686-linux/rb_gsl.so 7e8fb48ce8c6c12e76b05fe2c46e0b20 /usr/local/lib/ruby/site_ruby/1.8/i686-linux/rb_gsl.so 2) Added /usr/local/lib to /etc/ld.so.conf This directory was missing from the list in ld.so.conf but I added it. The file now looks like this: [mark@www rb-gsl-1.6.0]$ cat /etc/ld.so.conf /usr/kerberos/lib /usr/X11R6/lib /usr/lib/qt-3.0.5/lib /usr/lib/mysql /usr/local/lib After doing both these things, I tried running a setup.rb clean, then ran though the build intructions again with the same outcome. Is there any other information I can provide that might be helpful? Thanks! :-) -Mark Yoshiki Tsunesada wrote: > Hi Mark, > > I've never found the problems in my test, >on MacOS X and Redhat 9.0. Please check the >followings and try again. > > * The shared object > /usr/local/lib/ruby/site_ruby/1.8/i686-linux/rb_gsl.so > is copired correctly? Check with ext/rb_gsl.so, or copy > it by-hand. > * Add an entry "/usr/local/lib" in /etc/ld.so.conf. > > Sorry for inconvenience. > Yoshiki > >On Tue, 11 Jan 2005 06:22:17 +0900, Mark Bennett wrote: > > >>I'm trying to use rb-gsl in an application I'm writing and am able to >>use it on Mac OS X but not Linux. On an old Red Hat 7.3 box I see >>the following error messages when compiling use, 'ruby setup.rb >>setup': >> >>gcc -fPIC -I../include -Wall -I/usr/local/include -I. >>-I/usr/local/lib/ruby/1.8/i686-linux >>-I/usr/local/lib/ruby/1.8/i686-linux >>-I/home/mark/versioned/praxis/sbcalc/third_party/rb-gsl-1.6.0/ext >>-c wavelet.c >>cc1: warning: changing search order for system directory >>"/usr/local/include" >>cc1: warning: as it has already been specified as a non-system directory >> >>It says this for all files being compiled. When I try to run any of >>the sample applications included with rb-gsl I see the message: >> >>/usr/local/lib/ruby/site_ruby/1.8/i686-linux/rb_gsl.so: libgsl.so.0: >>cannot open shared object file: No such file or directory - >>/usr/local/lib/ruby/site_ruby/1.8/i686-linux/rb_gsl.so (LoadError) >> from /usr/local/lib/ruby/site_ruby/1.8/gsl.rb:1 >> from cheb.rb:2:in `require' >> from cheb.rb:2 >> >>This same procedure works just find on my Mac. I've run ldconfig to >>make sure all my GSL libraries are found, and I run 'make test' after >>installing GSL. All tests passed. >> >>Does anyone out there have a suggestion for what to do? >> >>Thanks! >> >>-Mark >> >>