From: Ashita Hara on
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 `<main>'

Is there anything else that needs to be installed using gem?

Regards,
Ashita
--
Posted via http://www.ruby-forum.com/.

From: Luis Lavena on
On Feb 27, 12:05 am, Ashita Hara <lat...(a)gmail.com> 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 `<main>'
>
> 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