Subject:
Re: [ruby-ffi] 0.5.1 install failed on JRuby
From:
Charles Oliver Nutter
Date:
10/29/09 1:32 PM
To:
ruby-ffi@googlegroups.com

If I were to guess, I'd say the -java gem hasn't been released?

On Thursday, October 29, 2009, Jerome Riga <lamit.jay@googlemail.com> wrote:
>
> 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
>