[fxruby-users] install.rb:655:in `command': system("make") failed (RuntimeError) (GatoLinux)

David MacMahon davidm at astro.berkeley.edu
Tue Feb 17 14:25:19 EST 2009


On Feb 17, 2009, at 7:57 , GatoLinux wrote:

> I am using ruby 1.8.4 (2005-12-24).
>
> I took this code from the file ruby.h in Ruby's release: ruby-1.9.1-p0

It seems likely that the underlying structures/macros are not  
compatible between 1.8.4 and 1.9.1.  Here's what I added to my ruby.h  
file to get fxruby building with Ruby 1.8.5...

#ifndef RARRAY_LEN
#define RARRAY_LEN(a) (RARRAY(a)->len)
#endif

#ifndef RARRAY_PTR
#define RARRAY_PTR(a) (RARRAY(a)->ptr)
#endif

#ifndef RSTRING_LEN
#define RSTRING_LEN(s) (RSTRING(s)->len)
#endif

#ifndef RSTRING_PTR
#define RSTRING_PTR(s) (RSTRING(s)->ptr)
#endif

Hope this helps,
Dave



More information about the fxruby-users mailing list