Daniel Carrera wrote:
There is no "fox.rb" file since it's a compiled extension module and not
a pure Ruby library. The file name you're looking for is "fox.so" and
should be in (I guess):
/usr/lib/ruby/site_ruby/1.6/i686-linux
Alright, "fox.so" is where it should be. Any ideas why Ruby can't find
it?
Ruby has no trouble finding the libraries in /usr/lib/ruby/1.6, doesn't
that mean that it should also see the ones in /usr/lib/ruby/site_ruby/1.6?
Is there a RUBY_LIBRARY_PATH variable that I'm supposed to set or
something?
Probably not, but let's see what you get when you type:
ruby -e "puts $LOAD_PATH"
For example, on my box it reports:
/usr/lib/ruby/site_ruby/1.6
/usr/lib/ruby/site_ruby/1.6/i686-linux
/usr/lib/ruby/site_ruby
/usr/lib/ruby/1.6
/usr/lib/ruby/1.6/i686-linux
.
Now, on the slim chance that your Ruby installation is configured for some other target (say, i386-linux) that might be the problem. In that case you can set the RUBYLIB environment variable so that it Ruby's load path will include the path that your RPM installed to, e.g.
export RUBYLIB="/usr/lib/ruby/site_ruby/1.6/i686-linux"
and then try again.
Lyle
Thanks Lyle, it works now.
But I still want to mention something: My LOAD_PATH variable was empty:
$ ruby -e "puts $LOAD_PATH"
$
I added /usr/lib/ruby/site_ruby/1.6/i686-linux to RUBYLIB and FXRuby works
now (as does FreeRide). But I was wondering if you thought there was
something wrong with my install.
In any event, thanks for helping. When I go back to work, I'll see if I
can get all this installed in the Sun machine as well.
Thanks again,
Daniel.
Daniel Carrera wrote:
Thanks Lyle, it works now.
A New Year’s Eve gift 
But I still want to mention something: My LOAD_PATH variable was empty:
$ ruby -e “puts $LOAD_PATH”
$
My bad, I should have written that with single quotes and not double
quotes. With double quotes, I think the shell’s trying to expand
$LOAD_PATH for us (into an empty string) before Ruby ever sees it. Try
typing this instead (after first unsetting your RUBYLIB environment
variable):
ruby -e 'puts $LOAD_PATH'
Does the “/usr/lib/ruby/site_ruby/1.6/i686-linux” directory show up in
the $LOAD_PATH that this prints out?
I added /usr/lib/ruby/site_ruby/1.6/i686-linux to RUBYLIB and FXRuby works
now (as does FreeRide). But I was wondering if you thought there was
something wrong with my install.
Without a doubt, some set of directories for the platform-dependent
extension modules should be in your $LOAD_PATH. But depending on how
your Ruby was built, those directories might instead be called (for
example):
/usr/lib/ruby/site_ruby/1.6/i386-linux
That’s not an error, but it does create a problem when Ruby tries to
look for extensions (like fox.so) and can’t find them because they’re
somewhere else 
In any event, thanks for helping. When I go back to work, I’ll see if I
can get all this installed in the Sun machine as well.
I’m glad you got it working under Linux. Maybe we’ll have fewer problems
on the Sun box.
sorry for bothering again with this question but the suggestions of
the posts above did not helped me out and i could not find any
solution for this problem on the web.
using require ‘fox’ in irb /or *.rb files generates this error
message:
hello.rb:3:in `require’: No such file to load – fox (LoadError)
from hello.rb:3
regarding to the posts above it looks like my fxruby is not installed
proper 
here is some output:
ruby -e ‘puts $LOAD_PATH’
/usr/local/lib/site_ruby/1.6
/usr/local/lib/site_ruby/1.6/i386-linux
/usr/local/lib/site_ruby
/usr/lib/ruby/1.6
/usr/lib/ruby/1.6/i386-linux
···
find / -name fox.so
/home/user/FXRuby-1.0.18/ext/fox/fox.so
i used export RUBYLIB=“/home/user/FXRuby-1.0.18/ext/fox/fox.so” and
some mutations of /home/user/FXRuby-1.0.18/ext/fox/
but nothing worked it out…
@batman
Is it too obvious that I’m desperately looking for feedback on my
packages? >;-)
do you got fxruby .deb packages or know where to get some?
thx for replies
Twilight