I see gem in "gem list" but have "no such file to load"

Posted by lublushokolad on Stack Overflow See other posts from Stack Overflow or by lublushokolad
Published on 2010-05-31T18:02:07Z Indexed on 2010/05/31 18:13 UTC
Read the original article Hit count: 265

Filed under:

I am on Ubuntu10

sudo apt-get install ruby1.9.1-full

then download sources of rubygem 1.3.7 and install it

sudo ruby setup.rb

then, for example, install sinatra

sudo gem install sinatra

Finally open irb and type

require "rubygems"
require "sinatra"

and get error

LoadError: no such file to load -- sinatra
    from (irb):2:in `require'
    from (irb):2
    from /usr/bin/irb:12:in `<main>'

Gem.path is the same to INSTALLATION DIRECTORY from "gem environment"

© Stack Overflow or respective owner

Related posts about ruby