Ruby RPM Missing ri doc

Mark Sargent powderkeg at snow.email.ne.jp
Wed Jun 21 04:04:57 UTC 2006


Mark Sargent wrote:
> Hi All,
>
> I installed Ruby via yum,
>
>     sudo yum install ruby
>
>
> and got this when quizzing ri,
>
>    $ ri methods
>    No ri documentation found in:
>
>    Was rdoc run to create documentation?
>
>
>    Installing Documentation
>    ------------------------
>    'ri' uses a database of documentation built by the RDoc utility.
>
>    So, how do you install this documentation on your system? It 
> depends on
>    how you installed Ruby.
>
>    _If you installed Ruby from source files_ (that is, if it some 
> point you
>    typed 'make' during the process :), you can install the
>    RDocdocumentation yourself. Just go back to the place where you have
>    your
>    Ruby source and type
>
>     make install-doc
>
>    You'll probably need to do this as a superuser, as the 
> documentation is
>    installed in the Ruby target tree (normally somewhere under
>    +/usr/local+.
>
>    _If you installed Ruby from a binary distribution_ (perhaps using a
>    one-click installer, or using some other packaging system), then the
>    team that produced the package probably forgot to package the
>    documentation as well. Contact them, and see if they can add it to the
>    next release.
>
>
>
> doing the following,
>
>    sudo yum install | grep ruby*
>
>    $ sudo yum list | grep ruby*
>    Password:
>    grub.i386                                0.97-5    installed
>    ruby.i386                                1.8.4-3.2    installed
>    ruby-libs.i386                           1.8.4-3.2    installed
>    eruby.i386                               1.0.5-5.2.1    core
>    eruby-devel.i386                         1.0.5-5.2.1    core
>    eruby-libs.i386                          1.0.5-5.2.1    core
>    jruby.noarch                             0.7.0-4jpp    
> jpackage-generic
>    jruby-javadoc.noarch                     0.7.0-4jpp    
> jpackage-generic
>    perl-HTML-Scrubber.noarch                0.08-3.fc5    extras
>    ruby.i386                                1.8.4-5.fc5    updates
>    ruby-clearsilver.i386                    0.10.3-3.fc5    extras
>    ruby-debuginfo.i386                      1.8.4-5.fc5    updates
>    ruby-devel.i386                          1.8.4-5.fc5    updates
>    ruby-docs.i386                           1.8.4-5.fc5    updates
>    ruby-irb.i386                            1.8.4-5.fc5    updates
>    ruby-libs.i386                           1.8.4-5.fc5    updates
>    ruby-mode.i386                           1.8.4-5.fc5    updates
>    ruby-mysql.i386                          2.7-8.fc5    extras
>    ruby-rdoc.i386                           1.8.4-5.fc5    updates
>    ruby-ri.i386                             1.8.4-5.fc5    updates
>    ruby-tcltk.i386                          1.8.4-5.fc5    updates
>    scrub.i386                               1.7-1.fc5    extras
>    subversion-ruby.i386                     1.3.2-2.1    updates
>
>
>
>
> shows that there is a ruby-docs rpm. I'm assuming that that is what I 
> need. I wish to ask, is this an oversight of the rpm maintainer or 
> intended, perhaps? Makes ruby less productive if so, don't you think? 
> I also rqn rdoc, but no change in error. Cheers.
Hi All,

I have removed/re-installed Ruby* via yum, and still can't run ri for 
anything. Surely, this must be a bug, no?

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
ruby i386 1.8.4-6.fc5 updates 253 k
ruby-clearsilver i386 0.10.3-3.fc5 extras 84 k
ruby-debuginfo i386 1.8.4-6.fc5 updates 1.9 M
ruby-devel i386 1.8.4-6.fc5 updates 541 k
ruby-docs i386 1.8.4-6.fc5 updates 1.5 M
ruby-irb i386 1.8.4-6.fc5 updates 65 k
ruby-libs i386 1.8.4-6.fc5 updates 1.5 M
ruby-mode i386 1.8.4-6.fc5 updates 51 k
ruby-rdoc i386 1.8.4-6.fc5 updates 122 k
ruby-ri i386 1.8.4-6.fc5 updates 556 k
ruby-tcltk i386 1.8.4-6.fc5 updates 1.6 M
Installing for dependencies:
emacs-common i386 21.4-14 core 11 M

Transaction Summary
=============================================================================
Install 12 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 19 M
Is this ok [y/N]: y
Downloading Packages:
(1/12): ruby-tcltk-1.8.4- 100% |=========================| 1.6 MB 01:03
(2/12): ruby-libs-1.8.4-6 100% |=========================| 1.5 MB 00:59
(3/12): ruby-ri-1.8.4-6.f 100% |=========================| 556 kB 00:20
(4/12): ruby-clearsilver- 100% |=========================| 84 kB 00:03
(5/12): ruby-debuginfo-1. 100% |=========================| 1.9 MB 01:15
(6/12): emacs-common-21.4 100% |=========================| 11 MB 06:48
(7/12): ruby-docs-1.8.4-6 100% |=========================| 1.5 MB 00:57
(8/12): ruby-rdoc-1.8.4-6 100% |=========================| 122 kB 00:04
(9/12): ruby-1.8.4-6.fc5. 100% |=========================| 253 kB 00:09
(10/12): ruby-devel-1.8.4 100% |=========================| 541 kB 00:20
(11/12): ruby-irb-1.8.4-6 100% |=========================| 65 kB 00:02
(12/12): ruby-mode-1.8.4- 100% |=========================| 51 kB 00:01
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ruby-libs ####################### [ 1/12]
Installing: ruby ####################### [ 2/12]
Installing: ruby-irb ####################### [ 3/12]
Installing: ruby-rdoc ####################### [ 4/12]
Installing: emacs-common ####################### [ 5/12]
Installing: ruby-tcltk ####################### [ 6/12]
Installing: ruby-ri ####################### [ 7/12]
Installing: ruby-clearsilver ####################### [ 8/12]
Installing: ruby-debuginfo ####################### [ 9/12]
Installing: ruby-docs ####################### [10/12]
Installing: ruby-devel ####################### [11/12]
Installing: ruby-mode ####################### [12/12]

Installed: ruby.i386 0:1.8.4-6.fc5 ruby-clearsilver.i386 0:0.10.3-3.fc5 
ruby-debuginfo.i386 0:1.8.4-6.fc5 ruby-devel.i386 0:1.8.4-6.fc5 
ruby-docs.i386 0:1.8.4-6.fc5 ruby-irb.i386 0:1.8.4-6.fc5 ruby-libs.i386 
0:1.8.4-6.fc5 ruby-mode.i386 0:1.8.4-6.fc5 ruby-rdoc.i386 0:1.8.4-6.fc5 
ruby-ri.i386 0:1.8.4-6.fc5 ruby-tcltk.i386 0:1.8.4-6.fc5
Dependency Installed: emacs-common.i386 0:21.4-14
Complete!
[ozboy at mumspc ~]$ ri Array
No ri documentation found in:

Was rdoc run to create documentation?


Installing Documentation
------------------------
'ri' uses a database of documentation built by the RDoc utility.

So, how do you install this documentation on your system? It depends on
how you installed Ruby.

_If you installed Ruby from source files_ (that is, if it some point you
typed 'make' during the process :), you can install the RDoc
documentation yourself. Just go back to the place where you have your
Ruby source and type

make install-doc

You'll probably need to do this as a superuser, as the documentation is
installed in the Ruby target tree (normally somewhere under
+/usr/local+.

_If you installed Ruby from a binary distribution_ (perhaps using a
one-click installer, or using some other packaging system), then the
team that produced the package probably forgot to package the
documentation as well. Contact them, and see if they can add it to the
next release.
-- 

Cheers.

Mark Sargent.

CPU=AMD Athlon(tm) XP 2000+
stepping        : 1
cpu MHz         : 1667.001
cache size      : 256 KB
Memory=515792 kB
OS=FC5
Desktop=Gnome
Browser=Firefox
Email=Thunderbird




More information about the fedora-list mailing list