I’m having problems getting FX/Ruby installed on Redhat 7.3 with Ruby 1.6.7.
First, I downloaded a binary RPM, but when I tried to run a simple FX/Ruby
script, I got an error saying the require of “fox” was failing.
So, I downloaded the source code and tried to build FX/Ruby from scratch. For
some reason, the code makes a number of calls to rb_gc_mark(), passing a
parameter, but in intern.h, that function doesn’t take any parameters.
In a desperate attempt to progress a little further, I hacked those calls to
remove the parameter that was being passed. I had to do this in two files.
After that, I was able to build and install the library.
One strange thing was that it installed things in …
/usr/local/lib/site_ruby/1.6/1.6/
I would have expected only one “1.6” in there.
Anyway, when I try to run the small script now, I get
test01.rb:1:in `require’: libFOX-1.0.so.0: cannot open shared object file: No
such file or directory - /usr/local/lib/site_ruby/1.6/1.6/i386-linux/fox.so
(LoadError)
from test01.rb:1
even though /usr/local/lib/site_ruby/1.6/1.6/i386-linux/fox.so exists and is
readable (and executable) by everyone.
Obviously, at this stage, I’m very, very confused!
I noticed that in the source files, where the references to rb_gc_mark()
appeared, it was #ifdef-ed for 1.7.2 versus anything earlier.
Should I try moving to 1.7.2, or is my problem something more fundamental?
Thanks in advance,
Harry O.