NArray install problems on 1.7.6

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?

[email protected] ~ $ 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


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


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 B. <

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs