On Nov 29, 2011, at 8:33 AM, Steve Robinson wrote:
> This is my first post here and Im starting with Ruby only now.
>=20
> I installed ruby using command
>=20
> "apt-get install ruby1.9.1"
>=20
> and then I installed rdoc using
>=20
> "gem install rdoc"
>=20
> it installed rdoc and rdoc-data gem

rdoc does not depend on the rdoc-data gem, so you probably installed it =
separately.

The post-install message for rdoc states:

> Depending on your version of ruby, you may need to install ruby =
rdoc/ri data:
>=20
> <=3D 1.8.6 : unsupported
>  =3D 1.8.7 : gem install rdoc-data; rdoc-data --install
>  =3D 1.9.1 : gem install rdoc-data; rdoc-data --install
> >=3D 1.9.2 : nothing to do! Yay!

> and asked me to run rdoc-data
> --install for generating ri doc for stdlib and core libraries.
> But when I ran rdoc-data --install I get following message:
>=20
> ------------------------------------------------------------
>=20
> steve@ubuntu:~$ rdoc-data --install
> <internal:lib/rubygems/defaults>:24: warning: statement not reached
> <internal:lib/rubygems/defaults>:76: warning: statement not reached
> /usr/lib/ruby/1.9.1/rubygems/defaults.rb:24: warning: statement not
> reached
> /usr/lib/ruby/1.9.1/rubygems/defaults.rb:76: warning: statement not
> reached
> /usr/lib/ruby/1.9.1/fileutils.rb:121:in `chdir': No such file or
> directory - /var/lib/gems/1.9.1/gems/rdoc-data-2.5.3/data/1.9.2
> (Errno::ENOENT)

It looks like this installed Ruby 1.9.2, not ruby 1.9.1, which does not =
need rdoc-data per the post-install message from rdoc above.  Ruby 1.9.2 =
includes documentation that is supported by the latest versions when =
built from source.

> ------------------------------------------------------------
>=20
> and when I run "ri" command I get only RDoc classes and none of the =
core
> classes. If I run "ri string", all I get is "Nothing know about =
String"
>=20
> Please help me=85

Since you used apt-get to install ruby perhaps you need to install a =
separate package to get ri data?

I don't use Debian so I don't know.