I have ruby 1.9.2 installed:
我安装了ruby 1.9.2:
alykhan@helium:~$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
But in irb when I try to require 'Matrix'
I get an error as shown below:
但是当我尝试要求'Matrix'时,我会收到错误,如下所示:
alykhan@helium:~$ irb
irb(main):001:0> require 'Matrix'
LoadError: no such file to load -- Matrix
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from (irb):1
from /usr/local/ruby/bin/irb:12:in `<main>'
irb(main):002:0>
Do i need to install a specific gem to get the Matrix lib?
我是否需要安装特定的gem才能获得Matrix lib?
1 个解决方案
#1
12
Use lowercase:
使用小写:
require 'matrix'
#1
12
Use lowercase:
使用小写:
require 'matrix'