From: Jesper Fruergaard Andersen Date: 2010-04-13T20:04:55+09:00 Subject: Re: Gems installed to $HOME not recognized I had the same problem on Ubuntu 9.10. Setting the environment variable GEM_HOME to the location of my gems seems to work. On Fri, Apr 2, 2010 at 1:31 AM, Albert Schlef wrote: > I'm using Ruby 1.9, Ubuntu (I don't have the following problem with my > Ruby 1.8). > > For some reason, Ruby 1.9 doesn't see gems I install to $HOME. It only > sees gems I install as root. > > In other words, if I do the following... > >  $ gem1.9.1 install haml > > ...the gem gets installed in ~/.gem/ruby/1.9.1/gems/haml-2.2.22, and > when I do 'require "haml"' ruby says there's no such file to load. > > On the other hand, when I do.... > >  $ sudo gem1.9.1 install haml > > ...the gem gets installed in /var/lib/gems/1.9.1/gems/haml-2.2.22, and > doing 'require "haml"' works. > > I temporarily solved the problem by symlinking /var/lib/gems/1.9.1 to > ~/.gem/ruby/1.9.1. > > My question: > > How can i make Ruby 1.9 see the gems installed at ~/.gem/ruby/1.9.1 ? > -- > Posted via http://www.ruby-forum.com/. > > -- Jesper