Subject:
[ruby-ffi] Re: 0.5.1 install failed on JRuby
From:
Wayne Meissner
Date:
10/29/09 3:24 PM
To:
ruby-ffi@googlegroups.com


Thats really odd.  The ffi-0.5.1-java.gem files is there, and if you
download it and install, it works fine.

It was marked as 'Universal' instead of 'Any' as the arch, which could
have been confusing things.  I have changed that, but I'm not sure
when, if ever that will propagate.


2009/10/29 Jerome Riga <lamit.jay@googlemail.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
>