Forum: Ruby ri not finding documentation (newbie)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D4e855a28dbcc327042084be99f6147b?d=identicon&s=25 Sergei Gerasenko (gerases)
on 2017-03-29 23:47
Hi everybody,

I've googled for this left and right, can't find the answer. I can't get
ri to find the documentation.

Take the File class as an example. I have the compiled (correct me if
i'm wrong) file here:

/opt/rh/ruby200/root/usr/share/ri/system/File/cdesc-File.ri

When I do "ri File", I get:

"--------------------------------------------------------------------
Also found in:
  gem rspec-support-3.4.1"

If I specify the directory with -d /opt/rh/ruby200/root/usr/share/ri, it
doesn't work either.

What am I missing?

Thanks,
  Sergei
D4e855a28dbcc327042084be99f6147b?d=identicon&s=25 Sergei Gerasenko (gerases)
on 2017-03-30 05:19
I found the reason more or less.

First of all, I was supposed to specify the additional path with:

-d /opt/rh/ruby200/root/usr/share/ri/system

and not:

-d /opt/rh/ruby200/root/usr/share/ri

Second, that documentation came from another package called ruby200. My
ruby binaries on the other hand were from another package called
ruby-2.0.598. When I installed the matching doc package
(ruby-doc-2.0.0.598), ri found File without a problem.
This topic is locked and can not be replied to.