RubyInline versions prior to 3.6.5 may result in a CompilerError on OS X Leopard if Ruby was not compiled with the -undefined suppress flag. This flag will allow Ruby to ignore missing symbols.
You can fix this in RubyInline-3.6.X/lib/inline.rb by changing the line:
flags = @flags.join(' ')
to:
flags = @flags.join(' ') + ' -lruby'
RubyInline 3.6.5 fixes this problem but 3.6.5 does not work with the scRUBYt 3.4
To uninstall a particular version of RubyInline:
gem uninstall -v 3.6.5 RunyInLine
Output showing compiler error mentioned above:
Undefined symbols for architecture i386:
"_rb_str_new2", referenced from:
_NODE_nd_file in cc4thOac.o
...
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/qb/qbAksYYGHlSshDFKGXGsik+++TI/-Tmp-//ccwaOwu2.out (No such file or directory)
/Library/Ruby/Gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:391:in `build': error executing cc -arch ppc -arch i386 -pipe -bundle -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -o "/Users/mthibault/.ruby_inline/Inline_ParseTree_2c97.bundle" "/Users/mthibault/.ruby_inline/Inline_ParseTree_2c97.c" : 256 (CompilationError)
...





Comments