Forum: JRuby NArray install problems on 1.7.6

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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- (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
  require at org/jruby/
   (root) at
   (root) at extconf.rb:1

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

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

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
the best option is to find a native java library, or gem that either
one or is written in pure ruby. MDArray is probably a good choice.

On Thu, Nov 14, 2013 at 6:00 AM, Rodrigo Botafogo <
This topic is locked and can not be replied to.