From owner-freebsd-questions@FreeBSD.ORG Wed Jun 13 08:02:48 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC06916A46B for ; Wed, 13 Jun 2007 08:02:48 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from host222.ipowerweb.com (host222.ipowerweb.com [66.235.210.10]) by mx1.freebsd.org (Postfix) with SMTP id BA23B13C480 for ; Wed, 13 Jun 2007 08:02:48 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 51451 invoked from network); 13 Jun 2007 07:59:09 -0000 Received: from unknown (HELO demeter.hydra) (24.9.123.251) by host222.ipowerweb.com with SMTP; 13 Jun 2007 07:59:09 -0000 Received: from demeter.hydra (localhost [127.0.0.1]) by demeter.hydra (8.13.6/8.13.6) with ESMTP id l5D82lD0020395 for ; Wed, 13 Jun 2007 02:02:47 -0600 (MDT) (envelope-from perrin@apotheon.com) Received: (from ren@localhost) by demeter.hydra (8.13.6/8.13.6/Submit) id l5D82kOg020394 for freebsd-questions@freebsd.org; Wed, 13 Jun 2007 02:02:46 -0600 (MDT) (envelope-from perrin@apotheon.com) X-Authentication-Warning: demeter.hydra: ren set sender to perrin@apotheon.com using -f Date: Wed, 13 Jun 2007 02:02:46 -0600 From: Chad Perrin To: FreeBSD Questions Message-ID: <20070613080246.GA20321@demeter.hydra> Mail-Followup-To: FreeBSD Questions References: <20070612231052.GB18576@demeter.hydra> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Subject: Re: ri doesn't seem to work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 08:02:49 -0000 On Wed, Jun 13, 2007 at 03:06:08AM -0400, illoai@gmail.com wrote: > On 13/06/07, illoai@gmail.com wrote: > >On 12/06/07, Chad Perrin wrote: > >> No matter what I try to look up with ri (the Ruby information utility > >> that is used to look up stuff about classes, methods, et cetera, from the > >> command line), it returns the same result: > >> > >> > ri Time.strftime > >> Nothing known about Time.strftime > >> > >> I don't see anything in /usr/ports/lang that seems to relate to the > >> matter of ensuring ri has a database of information to share. What am I > >> missing? How can I get ri working properly on FreeBSD? > > > >On a hunch I typed "ri -h" . . . > >and another hunch made me type "ri -c" . . . > > > >. . . > >Well, crap. rdoc wants something I can't think > >to give it. > >Hopefully this will start making sense. > > > > Hello, self. Also, hello, Chad! > > % tar jxvf /ports/distfiles/ruby/ruby-1.8.6.tar.bz2 > % sudo rdoc --ri -R -U ruby-1.8.6/ > > seems to be producing output. Interesting. Any idea why this isn't more obvious? I guess my mistake was in not trying "ri -c". I'm also not terribly clear on how I'd have guessed at: /usr/ports/distfiles/ruby/ruby-1.8.6.tar.bz2 . . . without any easily discoverable guidance. Thanks much! It's working now. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] print substr("Just another Perl hacker", 0, -2);