Ruby and ri(1) ruby information

Kevin O'Gorman kogorman at gmail.com
Fri Dec 20 16:09:32 UTC 2013


On Fri, Dec 20, 2013 at 2:35 AM, Colin Law <clanlaw at gmail.com> wrote:
> 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


The first one failed with errors.  Is it time to file a bug?

root at treat:~# gem install rdoc rdoc-data
Fetching: json-1.8.1.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing rdoc:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot
load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:1:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.1
for inspection.
Results logged to
/var/lib/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
Building native extensions.  This could take a while...
ERROR:  Error installing rdoc-data:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot
load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:1:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.1
for inspection.
Results logged to
/var/lib/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
root at treat:~#


-- 
Kevin O'Gorman

programmer, n. an organism that transmutes caffeine into software.
Please consider the environment before printing this email.




More information about the ubuntu-users mailing list