Problem installing rdoc

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?

Regards,
Ashita

On Feb 27, 12:05 am, Ashita H. [email protected] wrote:

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