 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Kaushik Shah
RE: Unable to install on cygwin [ reply ] 2010-05-02 14:34
|
I am getting the below error -
/usr/lib/ruby/gems/1.8/gems/gsl-1.12.109/lib/rb_gsl.so: /usr/lib/ruby/gems/1.8/gems/gsl-1.12.109/lib/rb_gsl.so: undefined symbol: gsl_multimin_fminimizer_nmsimplex2rand - /usr/lib/ruby/gems/1.8/gems/gsl-1.12.109/lib/rb_gsl.so (LoadError)
Any clue what this is related to?
I had compiled from the source once, but then removed the files in site_ruby folder and installed v1.12 as a gem.
I am working on Ubuntu 9.10..
|
By: Yoshiki Tsunesada
RE: Unable to install on cygwin [ reply ] 2009-02-02 01:35
|
# I am not the maintainer of any pre-compiled rb-gsl packages for Linux distributions or cygwin.
It seems that the rb-gsl package you installed had been compiled with NArray extension support (NArray is a ruby extension library for N-dimension array manipulations). So check it before the rb-gsl installation, and try again.
If you compile rb-gsl by yourself from a source tree, the configuration script (setup.rb) searches NArray and sets an appropriate flag to build rb-gsl.
|
By: Patrick Kiley
RE: Unable to install on cygwin [ reply ] 2009-02-01 19:28
|
Hi all,
I am trying to install on ubunty-hardy, x86-64, but seem to get this error when I try to run a simple test.
/usr/lib/ruby/1.8/x86_64-linux/rb_gsl.so: /usr/lib/ruby/1.8/x86_64-linux/rb_gsl.so: undefined symbol: cNArray - /usr/lib/ruby/1.8/x86_64-linux/rb_gsl.so (LoadError)
from /usr/local/lib/site_ruby/1.8/rbgsl.rb:1
from ./rbtest.rb:2:in `require'
from ./rbtest.rb:2
I have 1) used apt-get to install Ruby/GSL 2) downloaded prebuilt ubuntu binary 3) tried to build from source 4) uninstalled everything, rebuilt from source/apt-getted GSL itself and repeated steps 1-3, but its all the same. I have also tried the "-I" option to specify location of
rb_gsl.so!
I must be doing something stupid, but any ideas would be helpful!
Thanks
|
By: Chris Finch
RE: Unable to install on cygwin [ reply ] 2007-04-19 14:18
|
Yoshiki,
I installed plotutils, but am still unable to use the graph feature:
for example the min.rb program produces the following:
finchc@C73XH1J ~/rubystuff/rb-gsl-1.9.0/samples
$ ruby min.rb
Using brent method
iter [ lower, upper] min err err(est)
0 [0.0000000, 6.0000000] 2.0000000 -1.1415927 6.0000000
1 [2.0000000, 6.0000000] 3.5278640 +0.3862713 4.0000000
2 [2.0000000, 3.5278640] 3.1748217 +0.0332290 1.5278640
3 [2.0000000, 3.1748217] 3.1264576 -0.0151351 1.1748217
4 [3.1264576, 3.1748217] 3.1414743 -0.0001183 0.0483641
5 [3.1414743, 3.1748217] 3.1415930 +0.0000004 0.0333474
Converged:
6 [3.1414743, 3.1415930] 3.1415927 +0.0000000 0.0001187
min.rb:29:in `graph': GNU plotutils required (NoMethodError)
from min.rb:29
Can you help with this problem?
Chris.
|
By: Yoshiki Tsunesada
RE: Unable to install on cygwin [ reply ] 2007-04-19 13:16
|
Chris,
You can find some scripts for physical/astrophysical calculations in the samples/ directory. Some researchers extensively use Ruby/GSL in their studies, but I don't know any user groups or communities for Ruby/GSL. I believe Ruby/GSL is quite good choice for scientific computing with Ruby, enjoy easy scripting!
|
By: Chris Finch
RE: Unable to install on cygwin [ reply ] 2007-04-18 14:23
|
Yoshiki,
I changed the make utility from the MinGW version to the GNU version and it now works - great! I'm looking forward to using rb/GSL. Do you know of any science ruby groups I could contact about rb/GSL?
Regards,
Chris
|
By: Chris Finch
RE: Unable to install on cygwin [ reply ] 2007-04-17 15:36
|
Hi guys after doing ruby setup.rb config, I do ruby setup.rb setup and get the following error - I would be very grateful for your help.
finchc@C73XH1J ~/rubystuff/rb-gsl-1.9.0
$ ruby setup.rb setup
---> lib
---> lib/gsl
<--- lib/gsl
---> lib/ool
<--- lib/ool
<--- lib
---> ext
mymake
makefile:141: warning: overriding commands for target `.c.o'
makefile:138: warning: ignoring old commands for target `.c.o'
c:\mingw\bin\mingw32-make.exe: *** No rule to make target `ruby.h', needed by `a
rray.o'. Stop.
setup.rb:655:in `command': system("mymake") failed (RuntimeError)
from setup.rb:664:in `make'
from setup.rb:1258:in `setup_dir_ext'
from setup.rb:1532:in `__send__'
from setup.rb:1532:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1524:in `exec_task_traverse'
from setup.rb:1519:in `each'
from setup.rb:1519:in `exec_task_traverse'
from setup.rb:1246:in `exec_setup'
from setup.rb:996:in `exec_setup'
from setup.rb:826:in `__send__'
from setup.rb:826:in `invoke'
from setup.rb:773:in `invoke'
from setup.rb:1578
|
By: Igor Drozdov
RE: Unable to install on cygwin [ reply ] 2006-06-26 08:21
|
I have found the answer.
The LoadError for rb_gsl.so is caused by pre-compiled gsl libraries that user installs using cygwin's setup.exe
I have removed cygwin binaries, downloaded latest gsl source (gsl-1.8) and compiled it myself under cygwin. After that, followed standard rb-gsl installation for rb-gsl-1.8.3.
Now 'require "gsl"' works under cygwin same as you would expect it under *nix. Plotutils bindings also work under cygwin X server.
Another detail: I have compiled my own ruby-1.8.4. For every library that has been compiled, the option --prefix=/usr has been used.
|
By: Aditya Mahajan
RE: Unable to install on cygwin [ reply ] 2006-03-12 19:36
|
I did a clean install of everything once more (Infact, I reinstalled ruby, just to be sure). ruby setup.rb install does not give me any errors. All files are copied correctly,
[/usr/lib/ruby/site_ruby/1.8/i386-cygwin]$ ls -l
total 1401
-rw-r--r-- 1 Aditya Mahajan None 89060 Mar 12 14:28 libnarray.a
-rw-r--r-- 1 Aditya Mahajan None 4888 Mar 12 14:28 narray.h
-rwxr-xr-x 1 Aditya Mahajan None 122880 Mar 12 14:36 narray.so
-rw-r--r-- 1 Aditya Mahajan None 122 Mar 12 14:36 narray_config.h
-r-xr-xr-x 1 Aditya Mahajan None 1211904 Mar 12 14:40 rb_gsl.so
However, when I do require require "gsl" I still get the error
[/f/tmp/rb-gsl-1.7.0/tests]$ ruby cdf.rb
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/rb_gsl.so: No such file or directory - /
usr/lib/ruby/site_ruby/1.8/i386-cygwin/rb_gsl.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/gsl.rb:2
from cdf.rb:2
The error message looks very strange to me and I do not understand it.
|
By: Yoshiki Tsunesada
RE: Unable to install on cygwin [ reply ] 2006-03-12 12:09
|
Unfortunately, I have no Windows box now, sorry.
But I just remembered my friend said: in Cygwin environment,
sometimes ruby setup.rb install fails and
an extension *.so does not copied correctly.
Please copy rb_gsl.so by-hand into some lib
directory, and try again. How about it?
|
By: Aditya Mahajan
RE: Unable to install on cygwin [ reply ] 2006-03-12 07:56
|
Thanks for the pointer. I copied libnarray.a to /usr/lib/ and was able to install gsl. However, I am still not able to use it. When I do
require "gsl"
in a ruby program, I get the error
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/rb_gsl.so: No such file or directory - /
usr/lib/ruby/site_ruby/1.8/i386-cygwin/rb_gsl.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/gsl.rb:2
I do not understand this error message. rb_gsl.so in present in the above path, I do not know why it can not be loaded. Any hints?
|
By: Aditya Mahajan
Unable to install on cygwin [ reply ] 2006-03-11 17:27
|
Hi,
When I try to install on cygwin, I get the following error message. As I understand, the linker can not link to narray, even though narray.h is present. How do I correct this?
Thanks
Aditya
[/f/tmp/rb-gsl-1.7.0]$ ruby setup.rb config
---> lib
---> lib/gsl
<--- lib/gsl
<--- lib
---> ext
/usr/bin/ruby /cygdrive/f/tmp/rb-gsl-1.7.0/ext/extconf.rb
checking gsl version... 1.7
checking gsl cflags... -I/usr/include
checking for main() in -lcblas... no
checking gsl libs... -L/usr/lib -lgsl -lgslcblas -lm
checking for rngextra/rngextra.h... no
checking for gsl_tensor/gsl_tensor.h... no
checking rb-gsl version...1.7.0
checking ruby version... 1.8.4
checking for graph... yes
checking for narray.h... yes
checking for main() in -lnarray... no
/cygdrive/f/tmp/rb-gsl-1.7.0/ext/extconf.rb:147: ERROR: narray import library is
not found (RuntimeError)
setup.rb:535:in `command': 'system /usr/bin/ruby /cygdrive/f/tmp/rb-gsl-1.7.0/ex
t/extconf.rb ' failed (RuntimeError)
from setup.rb:1112:in `extconf'
from setup.rb:1107:in `config_dir_ext'
from setup.rb:1321:in `traverse'
from setup.rb:1338:in `dive_into'
from setup.rb:1319:in `traverse'
from setup.rb:1313:in `exec_task_traverse'
from setup.rb:1308:in `exec_task_traverse'
from setup.rb:1097:in `exec_config'
from setup.rb:878:in `exec_config'
from setup.rb:710:in `invoke'
from setup.rb:674:in `invoke'
from setup.rb:1352
|
|
 |