Rdoc-data install problem

This is my first post here and Im starting with Ruby only now.

I installed ruby using command

"apt-get install ruby1.9.1"

and then I installed rdoc using

"gem install rdoc"

it installed rdoc and rdoc-data gem 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:

···

------------------------------------------------------------

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)
  from /usr/lib/ruby/1.9.1/fileutils.rb:121:in `cd'
  from /var/lib/gems/1.9.1/gems/rdoc-data-2.5.3/lib/rdoc/data.rb:52:in
`run'
  from /var/lib/gems/1.9.1/gems/rdoc-data-2.5.3/lib/rdoc/data.rb:41:in
`run'
  from /var/lib/gems/1.9.1/gems/rdoc-data-2.5.3/bin/rdoc-data:6:in `<top
(required)>'
  from /usr/local/bin/rdoc-data:19:in `load'
  from /usr/local/bin/rdoc-data:19:in `<main>'
------------------------------------------------------------

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"

Please help me...

--
Posted via http://www.ruby-forum.com/.

This is my first post here and Im starting with Ruby only now.

I installed ruby using command

"apt-get install ruby1.9.1"

and then I installed rdoc using

"gem install rdoc"

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:

<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 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:

------------------------------------------------------------

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.

------------------------------------------------------------

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"

Please help me…

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.

···

On Nov 29, 2011, at 8:33 AM, Steve Robinson wrote:

Thanks for your help. But as you said 1.9.2 does not need rdoc-data gem.
And I couldnt figure out how to generate documentation for it since I
installed via apt-get. So what I did is I cleaned all instances of ruby
and cleaned everything and I installed ruby via rvm. and used rvm to
generate the docs. Now ri works fine. Thanks a lot!!!

···

--
Posted via http://www.ruby-forum.com/.