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

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

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