Looks like you need to install the library
install from source (requires compiler)
gem install narray
Windows binary (MinGW version; works also with VC6 mswin32)
gem install narray --platform=x86-mingw32
From here http://narray.rubyforge.org/
PRELOAD:
irb(main):001:0> require ‘narray’
LoadError: no such file to load – narray
from (irb):1:in `require’
from (irb):1
INSTALL:
! gem install narray
Password:
Building native extensions. This could take a while…
Successfully installed narray-0.5.9.7
1 gem installed
Installing RDoc documentation for narray-0.5.9.7…
Usage:
irb(main):004:0> require “rubygems”
=> true
irb(main):005:0> require “narray”
=> true
irb(main):006:0> ary1 = NArray.sfloat(3,4)
=> NArray.sfloat(3,4):
[ [ 0.0, 0.0, 0.0 ],
[ 0.0, 0.0, 0.0 ],
[ 0.0, 0.0, 0.0 ],
[ 0.0, 0.0, 0.0 ] ]
irb(main):007:0>
From: Abder-Rahman A. [email protected]
Reply-To: [email protected]
Date: Thu, 2 Sep 2010 10:09:33 -0500
To: ruby-talk ML [email protected]
Subject: uninitialized constant NArray (Name Error)
Following section (2) here:
http://ruby.gfd-dennou.org/tutorial/gokuraku/index-e.html
Trying to run this part of script I have so far:
require ‘narray’
ary1 = NArray.sfloat(3,4)
I get the following error:
C:\Users\Abder-Rahman\Desktop>ruby narray.rb
./narray.rb:2: uninitialized constant NArray (NameError)
from narray.rb:1:in `require’
from narray.rb:1
How can this issue be solved?
Thanks.