Forum: JRuby NArray install problems on 1.7.6

F4c2dcb24f2828cde331ba6a2c9ea10d?d=identicon&s=25 Jabari Z. (jabari_z)
on 2013-11-14 02:31
Using rvm 1.23.14 (master).
Tried a 'gem install narray' and go the following output.

Is there a way to fix it from the error messages?

--------------------------------------
jzakiya@new-host-3 ~ $ gem install narray
Fetching: narray-0.6.0.8.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing narray:
        ERROR: Failed to build gem native extension.

    /home/jzakiya/.rvm/rubies/jruby-1.7.6/bin/jruby extconf.rb
NotImplementedError: C extension support is not enabled. Pass
-Xcext.enabled=true to JRuby or set JRUBY_OPTS.

   (root) at
/home/jzakiya/.rvm/rubies/jruby-1.7.6/lib/ruby/shared/mkmf.rb:8
  require at org/jruby/RubyKernel.java:1082
   (root) at
/home/jzakiya/.rvm/rubies/jruby-1.7.6/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
   (root) at extconf.rb:1


Gem files will remain installed in
/home/jzakiya/.rvm/gems/jruby-1.7.6/gems/narray-0.6.0.8 for inspection.
Results logged to
/home/jzakiya/.rvm/gems/jruby-1.7.6/gems/narray-0.6.0.8/src/gem_make.out
B97f192e676f1a67e0ef18f022671406?d=identicon&s=25 Rodrigo Botafogo (Guest)
on 2013-11-14 13:02
(Received via mailing list)
Hi,

I think JRuby does not support native C integration.  You could try to
use
MDArray, which is similar to NArray, but targets specifically JRuby.


Rodrigo
C983ad33b47479f17a28e083e1bb3d8b?d=identicon&s=25 Eric West (edubkendo)
on 2013-11-14 17:19
(Received via mailing list)
That's right, C extension support was experimental and is deprecated and
off by default . C libraries can be integrated via the FFI api, but
usually
the best option is to find a native java library, or gem that either
wraps
one or is written in pure ruby. MDArray is probably a good choice.


On Thu, Nov 14, 2013 at 6:00 AM, Rodrigo Botafogo <
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.