Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Where's ruby's "ri" command?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
ThomasJ02
n00b
n00b
Posts: 38
Joined: Wed Aug 27, 2003 11:23 pm

Where's ruby's "ri" command?

  • Quote

Post by ThomasJ02 » Sun Jun 25, 2006 9:08 pm

What do I need to emerge to get ruby's "ri" documentation command? I did some web searches and it looks like there used to be a dev-ruby/ri package, but it doesn't seem to be there anymore
Top
thorpe
l33t
l33t
Posts: 618
Joined: Mon May 09, 2005 1:46 am
Location: Sydney, Australia.

  • Quote

Post by thorpe » Sun Jun 25, 2006 9:50 pm

Silly question but have you emerged dev-lang/ruby ?
Research before taking any advice from me. I'm still coming to grips with this myself.
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Sun Jun 25, 2006 10:01 pm

Ive seen the command "rdoc" mention as the documentation command for ruby. Its part of ruby.
An A-Z Index of the Linux BASH command line
Top
ThomasJ02
n00b
n00b
Posts: 38
Joined: Wed Aug 27, 2003 11:23 pm

  • Quote

Post by ThomasJ02 » Sun Jun 25, 2006 10:43 pm

Yeah, I definitely have ruby installed. And rdoc looks like javadoc, except for ruby, i.e. it produces documentation about code you write, not documentation about ruby functions
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Sun Jun 25, 2006 10:55 pm

When I emerged ruby it installed a file called /usr/bin/ri18. There is also a symlink /usr/bin/ri that points to it. I'm using the latest stable ruby-1.8.4-r1. When I run "ri" on the command line I get:

Code: Select all

ri v1.0.1 - 20041108

Usage:

  ri [options]  [names...]

Display information on Ruby classes, modules, and methods.
Give the names of classes or methods to see their documentation.
Partial names may be given: if the names match more than
one entity, a list will be shown, otherwise details on
that entity will be displayed.
More gets printed out but I snipped the output.
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Sun Jun 25, 2006 10:55 pm

Well I do have /usr/bin/ri but equery wont tell me where it came from :roll: I just installed ruby,ruby-config, rubygems and rails the other day so it came from one of em.
An A-Z Index of the Linux BASH command line
Top
thorpe
l33t
l33t
Posts: 618
Joined: Mon May 09, 2005 1:46 am
Location: Sydney, Australia.

  • Quote

Post by thorpe » Sun Jun 25, 2006 11:33 pm

Well.. ive only ever installed dev-lang/ruby and I have the same symlink /usr/bin/ri pointing to /usr/bin/ri18. Does that help?
Research before taking any advice from me. I'm still coming to grips with this myself.
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Mon Jun 26, 2006 12:09 am

Dang sneaky symlinks

Code: Select all

hielvc@tester ~ $ equery b /usr/bin/ri18
[ Searching for file(s) /usr/bin/ri18 in *... ]
dev-lang/ruby-1.8.4.20060529 (/usr/bin/ri18)
An A-Z Index of the Linux BASH command line
Top
ThomasJ02
n00b
n00b
Posts: 38
Joined: Wed Aug 27, 2003 11:23 pm

  • Quote

Post by ThomasJ02 » Mon Jun 26, 2006 2:15 am

Aaaahhh it's ri18 and not just ri. For some reason I don't have the symlink

Thanks for your help!
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic