[Fxruby-users] Re: FXRuby install help... please...
Status: Inactive
Brought to you by:
lyle
|
From: Lyle J. <ly...@kn...> - 2004-07-05 20:01:08
|
On Jul 5, 2004, at 12:00 PM, Jeff Koppe wrote: > Help! I've either discovered a bug or, more likely, have messed up my > install > of fxruby. While irb and the hello2.rb program both return a message > saying > the fox.so file is missing, the file and path are as listed in the > error > message. (See sampe irb message below.) I've looked through the > various help > forums but have yet to find any similar problems and so I'm turning to > you > for help. <snip> > jkoppe@linux:~/downloads/ruby> irb > 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 > irb(main):003:0> <snip> The problem is that Ruby can't find libFOX-1.2.so.0, which is to say, the C++ FOX library that FXRuby depends on. [This is unfortunately a little obscure from the irb stack trace!] As you suspected, the problem (which is easily worked-around) is that you installed FOX in a non-standard location, under your home directory instead of one of its usual haunts like /usr/local. But don't fret. Take a look at the instructions near the bottom of this page: http://www.fxruby.org/doc/build.html under the section "Things That Can Go Wrong: Cannot load library". It describes a couple of ways to modify your operating environment (e.g. by setting the LD_LIBRARY_PATH environment variable, or by modifying your /etc/ld.so.conf file) to get things working. You should *not* need to recompile FOX or FXRuby; just make one of the suggested changes and try again. Hope this helps, Lyle |