From: Rick DeNatale Date: 2009-12-27T23:40:27+09:00 Subject: Re: building ruby from source On Sat, Dec 26, 2009 at 11:12 PM, Rajinder Yadav wrote: > I removed my older ruby package from my ubuntu, built ruby from source > successfully. added the sym link from ruby1.8 -> ruby in /usr/bin/ > > however from the IRB I'm getting errors it can't find my gems? how do I fix > this, I assume I need to define some environment variables? > > > irb(main):003:0> require 'rubygems' > LoadError: no such file to load -- rubygems >        from (irb):3:in `require' >        from (irb):3 >        from :0 > irb(main):004:0> require 'grackle' > LoadError: no such file to load -- grackle >        from (irb):4:in `require' >        from (irb):4 >        from :0 Despite some of the kind suggestions from others, the particular file rubygems.rb should be in .../lib/ruby/site_ruby/1.8/ if Ruby and rubygems are both installed. Note that this is not the gem binary, but rather the file which allows your program to load gems. The ... stands in for an installation path which varies from system to system. But should be something like /usr or /usr/local on a Debian based system. Actually self installed stuff should be in /user/local IIRC so as not to collide with packaged stuff. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale