[Fxruby-users] Re: FXRuby install help... please...
Status: Inactive
Brought to you by:
lyle
|
From: Peter W. <wat...@lu...> - 2004-07-06 00:06:08
|
I'm having trouble installing FXRuby as well. I looked at Lyle's reply
to someone who has the exact same problem I have (except that I didn't
install FXRuby in my home directory. I make all my installs as root.).
When I try to test my FXRuby installation by entering "require_gem
'fxruby'" into irb, I get the error "libFOX-1.2.so.0: cannot open shared
object file." My problem is similar to many that I've seen answered
before on this list and others, so please bear with me. I'll try to give
you as much detail as possible.
When I first checked my FXRuby install this is what I entered into irb
(please excuse the bad text wrapping):
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require_gem 'fxruby'
LoadError: libFOX-1.2.so.0: cannot open shared object file: No such file
or directory -
/usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.0/ext/fox/fox.so
from
/usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.0/ext/fox/fox.so
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:54:in
`require_gem'
from (irb):2
Then I looked to see where fox.so was installed in my case. It is in the
exact path listed by the error message.
Next I checked the $LOAD_PATH variable by entering:
irb(main):003:0> puts $LOAD_PATH
/usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.0/lib
/usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.0/ext/fox
/usr/local/lib/ruby/site_ruby/1.8
/usr/local/lib/ruby/site_ruby/1.8/i686-linux
/usr/local/lib/ruby/site_ruby
/usr/local/lib/ruby/1.8
/usr/local/lib/ruby/1.8/i686-linux
The path where my fox.so file is located is included in the output, so
there doesn't seem to be a problem there.
I read the document that Lyle listed but I didn't find a section labeled
"Things That Can Go Wrong: Cannot load library" nor could I find any
instructions on how to deal with my problem. The closest thing I found
was: "If the import failed (usually with a message along the lines of
"Cannot load library"), drop me an e-mail or ask around on the Ruby
newsgroup or mailing list." I even tried loading Google's cache of the
page hoping that an older version might have the info I wanted.
Lyle mentioned a LD_LIBRARY_PATH environment variable. I wasn't sure
which environment he was talking about, so I tried looking for it both
in my bash shell and inside ruby:
[peter@ulaneo-dynip141 fox]$ echo $LD_LIBRARY_PATH
--
irb(main):008:0> puts $LD_LIBRARY_PATH
nil
Neither gave me anything. I then looked at my /etc/ld.so.conf file:
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib
/usr/lib/mysql
/usr/lib/qt2/lib
Well, /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.0/ext/fox/ wasn't in
there. /usr/local/lib wasn't even in there. So I added both paths just
for good measure. Still the same error message.
I'm using RedHat Linux 9. Below is some other relevant software that I
have installed along with their versions:
ruby-1.8.1 from sources
fox-1.2.6 from sources
rubygems-0.6.1 from sources
fxscintilla-1.61 from sources
fxruby-1.2.0 from sources
freeride-0.6.0-1 from rpm
Thanks. Let me know if you need any more info.
Peter
|