From: Eric Hodel Date: 2011-11-30T08:30:18+09:00 Subject: Re: Rdoc-data install problem On Nov 29, 2011, at 8:33 AM, Steve Robinson wrote: > 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 > :24: warning: statement not reached > :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.