我已经安装了ruby 1.9.2:
alykhan@helium:~$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
但是在irb中,当我尝试require '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>
我需要安装一个特定的gem来获得矩阵库吗?
使用小写字母:
require 'matrix'