From: Brian Candler Date: 2010-09-03T00:20:04+09:00 Subject: Re: uninitialized constant NArray (Name Error) Abder-Rahman Ali wrote: > 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? (1) Don't call your own script 'narray.rb', because then Ruby will think it has already loaded the narray library. (2) Install the library narray.rb that you want to use. Probably from here: http://narray.rubyforge.org/ -- Posted via http://www.ruby-forum.com/.