Subject:
[ruby-ffi] 0.5.1 install failed on JRuby
From:
Jerome Riga
Date:
10/29/09 7:50 AM
To:
ruby-ffi@googlegroups.com


Hi all,

On my dev environment, it seems that FFI 0.5.1 is trying to build the C-extension on the JRuby.

$ jgem i ffi --no-ri --no-rdoc --version=0.5.0
Successfully installed ffi-0.5.0-java
1 gem installed

$ jgem i ffi --no-ri --no-rdoc --version=0.5.1
Building native extensions.  This could take a while...
ERROR:  Error installing ffi:
    ERROR: Failed to build gem native extension.

/opt/local/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library.
         Check wiki.jruby.org for alternatives.
extconf.rb:4: undefined method `dir_config' for main:Object (NoMethodError)


Gem files will remain installed in /opt/local/lib/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/ffi-0.5.1 for inspection.
Results logged to /opt/local/lib/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/ffi-0.5.1/ext/ffi_c/gem_make.out

Could someone verify this, please?

Cheers,

Jerome Riga