Matrix.rb 没有这样的文件 Ruby 1.9.2
我安装了 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 来获取 Matrix 库吗?
I have ruby 1.9.2 installed:
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:
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用小写:
Use lowercase: