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?
Use lowercase:
require 'matrix'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With