[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ri/rdoc on gentoo

Jim Crossley

1/30/2005 6:09:00 PM

Hi Ruby'ers. I'm a newbie trying to set up my Gentoo box with ruby.
I'm pretty much there except for ri.

Gentoo's ruby ebuild doesn't seem to include the rdoc, i.e. it doesn't
run 'make install-doc'. So I tried doing it myself:

$ su -
$ cd /usr/lib/ruby/1.8
$ rdoc --all --ri-system

That seemed to work, but I don't think my docs are complete. For
example, when I type 'ri -T Kernel' now, this is my output:

====> OUTPUT BEGIN
---------------------------------------------------------- Class: Kernel
(no description...)
------------------------------------------------------------------------


Instance methods:
-----------------
URI, open
====> OUTPUT END

I would've expected to see class methods like print and scan. What am
I missing?

Thanks,
Jim
3 Answers

Jason Sweat

1/30/2005 6:16:00 PM

0

On Mon, 31 Jan 2005 03:10:51 +0900, Jim Crossley <jim@crossleys.org> wrote:
> Hi Ruby'ers. I'm a newbie trying to set up my Gentoo box with ruby.
> I'm pretty much there except for ri.
>
> Gentoo's ruby ebuild doesn't seem to include the rdoc, i.e. it doesn't
> run 'make install-doc'. So I tried doing it myself:
>
> $ su -
> $ cd /usr/lib/ruby/1.8
> $ rdoc --all --ri-system
<snip>
> Thanks,
> Jim

add doc to your USE flags when you emerge ruby

--
Regards,
Jason
http://blog.casey...


Jim Crossley

1/30/2005 7:01:00 PM

0

Jason Sweat <jason.sweat@gmail.com> writes:

> On Mon, 31 Jan 2005 03:10:51 +0900, Jim Crossley <jim@crossleys.org> wrote:
>>
>> Gentoo's ruby ebuild doesn't seem to include the rdoc, i.e. it doesn't
>> run 'make install-doc'.
>
> add doc to your USE flags when you emerge ruby

That's too simple. :-)

Worked like a charm. Thanks for the speedy reply.

Jim

Jason Sweat

1/30/2005 11:03:00 PM

0

On Mon, 31 Jan 2005 04:05:47 +0900, Jim Crossley <jim@crossleys.org> wrote:
> Jason Sweat <jason.sweat@gmail.com> writes:
>
> > On Mon, 31 Jan 2005 03:10:51 +0900, Jim Crossley <jim@crossleys.org> wrote:
> >>
> >> Gentoo's ruby ebuild doesn't seem to include the rdoc, i.e. it doesn't
> >> run 'make install-doc'.
> >
> > add doc to your USE flags when you emerge ruby
>
> That's too simple. :-)
>
> Worked like a charm. Thanks for the speedy reply.
>
> Jim

No problem.

I like using emerge ruby-cvs to get ruby version 1.9

$ ruby -v
ruby 1.9.0 (2004-11-25) [i686-linux]

You can easily choose between this version and ruby 1.8.2 from the
dev-lang/ruby using

$ ruby-config ruby19
or
$ ruby-config ruby18

HTH

Regards,
Jason
http://blog.casey...