Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matrix.rb no such file Ruby 1.9.2

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?

like image 956
Aly Avatar asked Dec 17 '22 15:12

Aly


1 Answers

Use lowercase:

require 'matrix'
like image 67
ctcherry Avatar answered Jan 03 '23 13:01

ctcherry