From: Stefan Lang Date: 2005-05-31T00:07:13+09:00 Subject: Re: Ruby from source and then from apt On Monday 30 May 2005 16:45, Jonas Pfenniger wrote: [...] > The real problem is that I installed some gems like `og`, but irb can't > find the include path to use it : > > irb(main):001:0> require 'og' > LoadError: No such file to load -- og > � � � � from (irb):1:in `require' > � � � � from (irb):1 > > > irb(main):001:0> require_gem 'og' > NoMethodError: undefined method `require_gem' for main:Object > � � � � from (irb):1 You have to load rubygems before you can use installed gems. require 'rubygems' # The rubygems script has modified the require method and # defined the require_gem method. require 'og' # or require_gem 'og' The reason for this is that gems aren't installed in standard Ruby library pathes. Stefan