 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Adam Pocsi
RE: rb-gsl-1.14.1 setup error [ reply ] 2010-12-14 20:23
|
Hi - I have trouble with installation on OS X 10.6.5 and get this error:
ld: duplicate symbol _gsl_vector_complex_scale in /usr/local/lib/libgsl.a(lt49-oper.o) and array.o
collect2: ld returned 1 exit status
make: *** [rb_gsl.bundle] Error 1
I have compiled the gsl from source. Opened a separate thread in this forum. Any help would be much appreciated.
|
By: David Bean
RE: rb-gsl-1.14.1 setup error [ reply ] 2010-03-31 03:58
|
|
Yes! Me too -- I've been fighting with an rb-gsl install on two Mac Snow Leopard installs. The one one my MacBookPro worked fine, but the install on a mac mini kept throwing lazy symbol binding failures. For the life of me, I can't figure out what the difference in the systems is. But, I just tried out the 1.14.3 release, and it works perfectly. Thank you!
|
By: Byeongha Jeong
RE: rb-gsl-1.14.1 setup error [ reply ] 2010-03-31 03:44
|
Hello!
rb-gsl-1.14.3 is working properly!
So, I tested some examples in "rb-gsl-1.14.3/examples" directory. Everything is OK!
But, I think Ruby/GSL Reference needs to be updated for the latest version of "rb-gsl".
I copied and pasted some example sources from the "Reference", then I executed those files.
But, I had an error message like this:
$ ruby Reference_5.1_Linear_regression.rb
`<main>': uninitialized constant Vector (NameError)
So, after changing "Vector" to "GSL::Vector", I finally got a result.
Thanks for your help!
Bests,
Byeongha Jeong
|
By: Byeongha Jeong
RE: rb-gsl-1.14.1 setup error [ reply ] 2010-03-30 15:01
|
Hello!
As your guidance, I have reinstalled rb-gsl to 1.14.2 with no compiling errors.
But, as with rb-gsl-1.14.1, I have "symbol lookup error" again.
$ruby ~/rb-gsl-1.14.2/tests/*.rb
ruby: symbol lookup error: /home/vokkmi/util_09_jaunty/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/i686-linux/rb_gsl.so: undefined symbol: Init_multiset
I have also reinstalled "ruby-1.9.1-p376(downgrade)" & "gsl-1.14" before the installation of rb-gsl with user installation, not superuser.
Thanks for your quick reply, and please help me again.
Bests,
Byeongha Jeong
|
By: Yoshiki Tsunesada
RE: rb-gsl-1.14.1 setup error [ reply ] 2010-03-30 09:17
|
Hi,
I guess there are multiple gsl installations in your system.
1. First check your gsl version:
% gsl-config --version
2. Find a line "GSL_1_14_LATER" in include/rb_gsl_config.h
If "1.14" is shown in 1. and the macro GSL_1_14_LATER is found,
setup.rb recognizes your gsl-1.14.
3. Type a command
% gsl-config --cflags
and check whether the gsl header files are there. How does the file gsl/gsl_version.h look like?
4. In a same way try the command
% gsl-config --libs
and check whether the gsl library files as libgsl.a are found in
the directory shown.
In general, pre-libraries in a Linux distribution are in /usr/lib, but user installed libraries compiled from a sourse tree would be in /usr/local/lib. If you built and installed gsl-1.14 by yourself in /usr/local and an older version are in /usr, the older one are found by the system and used in priority. Try either of the following:
- Remove older gsl (if exist)
- Edit /etc/ld.so.conf, by adding /usr/local/lib (or the directory shown by "gsl-config --libs") and run the command /bin/ldconfig (as root).
|
By: Byeongha Jeong
rb-gsl-1.14.1 setup error [ reply ] 2010-03-30 08:13
|
Hello!
I am using "ruby-1.9.1-p378" & "gsl-1.14"
on Ubuntu 9.04
I have a problem installing "rb-gsl-1.14.1"
$ ruby setup.rb config
$ ruby setup.rb setup
gsl.c: In function ‘rb_gsl_define_const’:
gsl.c:252: error: ‘GSL_MAJOR_VERSION’ undeclared (first use in this function)
gsl.c:252: error: (Each undeclared identifier is reported only once
gsl.c:252: error: for each function it appears in.)
gsl.c:253: error: ‘GSL_MINOR_VERSION’ undeclared (first use in this function)
make: *** [gsl.o] Error 1
So, after removing those lines in ext/gsl.c, I reconfigure, setup, and install the setup file successfully.
But, I have still a problem upon executing test files in "rb-gsl-1.14.1/tests" directory:
$ ruby FILENAME.rb
symbol lookup error: ~/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/i686-linux/rb_gsl.so: undefined symbol: Init_multiset
Please give me an advice!
Thanks in advance.
Bests,
Byeongha Jeong
|
|
 |