Ruby and ri(1) ruby information

Colin Law clanlaw at gmail.com
Fri Dec 20 10:35:15 UTC 2013


On 20 December 2013 01:51, Kevin O'Gorman <kogorman at gmail.com> wrote:
> On Thu, Dec 19, 2013 at 1:26 PM, Colin Law <clanlaw at gmail.com> wrote:
>> On 19 December 2013 21:14, Kevin O'Gorman <kogorman at gmail.com> wrote:
>>> kevin at treat:~$ apt-cache policy ruby
>>> ruby:
>>>   Installed: 4.9
>>>   Candidate: 4.9
>>>   Version table:
>>>  *** 4.9 0
>>>         500 http://us.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
>>>         100 /var/lib/dpkg/status
>>> kevin at treat:~$ ruby -v
>>> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
>>> kevin at treat:~$ which ruby
>>> /usr/bin/ruby
>>> kevin at treat:~$ which ri
>>> /usr/bin/ri
>>> kevin at treat:~$ ri -v
>>> ri 3.9.4
>>> kevin at treat:~$
>>
>> Kevin, you know better than to top post :)
>> That looks ok, so what do you see for
>> ri String
>>
>> Colin
>>
> [snip]

> So you chided me on top too?  It happens just like typos -- click
> before thinking.  Sorry.

No I didn't, I put it under your (top) post.

>
> Anyway,
>
> kevin at treat:~$ ri String
> Nothing known about String
> kevin at treat:~$
>
> Same for Array, or any of a bunch of others.

I have not come across that problem on standard Ubuntu, where ruby is
not installed by default.  Google suggests that

gem install rdoc rdoc-data
rdoc-data --install
might sort it, but I don't know.

By the way, if you want to get seriously into ruby then use rvm (or
possibly rbenv, but I have no experience of that myself) which will
manage versions of gems and ruby.

Colin




More information about the ubuntu-users mailing list