From: Luis Lavena Date: 2010-02-27T11:05:10+09:00 Subject: Re: problem installing rdoc On Feb 27, 12:05 am, Ashita Hara wrote: > Hello Group, > > ruby version: ruby 1.9.1p378 > > I used the commands presented below to install rdoc. > > gem install rdoc > gem rdoc --all > > However, I was not able to load rdoc/usage > > irb(main):001:0> require 'rdoc/usage' > LoadError: no such file to load -- rdoc/usage >   from (irb):1:in `require' >   from (irb):1 >   from /usr/bin/irb:12:in `
' > > Is there anything else that needs to be installed using gem? > Did you tried first: require 'rubygems' require 'rdoc/usage' ? As you installed RDoc as a gem, you first must require rubygems in order to allow 'require' find it. You can avoid doing it every time setting the environment variable RUBYOPT=rubygems -- Luis Lavena