Bug 7420 - Running "ruby" or "irb" (without any arguments) results in an error - ruby is completely broken
Summary: Running "ruby" or "irb" (without any arguments) results in an error - ruby is...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Pascal Terjan
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-09 20:26 CEST by Shlomi Fish
Modified: 2012-12-07 21:39 CET (History)
1 user (show)

See Also:
Source RPM: ruby-1.9.3.p194-1.mga3
CVE:
Status comment:


Attachments

Description Shlomi Fish 2012-09-09 20:26:45 CEST
Description of problem:

As a new user:

[kdetest@telaviv1 ~]$ ruby
/usr/share/ruby/gems/1.9.1/rubygems.rb:31:in `require': cannot load such file -- rbconfig (LoadError)
        from /usr/share/ruby/gems/1.9.1/rubygems.rb:31:in `<top (required)>'
        from <internal:gem_prelude>:1:in `require'
        from <internal:gem_prelude>:1:in `<compiled>'
[kdetest@telaviv1 ~]$ irb
/usr/share/ruby/gems/1.9.1/rubygems.rb:31:in `require': cannot load such file -- rbconfig (LoadError)
        from /usr/share/ruby/gems/1.9.1/rubygems.rb:31:in `<top (required)>'
        from <internal:gem_prelude>:1:in `require'
        from <internal:gem_prelude>:1:in `<compiled>'
[kdetest@telaviv1 ~]$ 

This makes the ruby package completely unusable.

I'm on Cauldron with ruby-1.9.3.p194-1.mga3 .
Comment 1 Shlomi Fish 2012-09-09 22:29:47 CEST
I discovered this workaround for this problem:

shlomif@telaviv1:~$ export RUBYLIB=/usr/lib64/ruby/x86_64-linux
shlomif@telaviv1:~$ irb
irb(main):001:0> puts "Hello\n"
Hello
=> nil
irb(main):002:0> 
shlomif@telaviv1:~$ irb
irb(main):001:0> puts "Hello\n"
Hello
=> nil
irb(main):002:0> 
shlomif@telaviv1:~$ 

(Should be modified for non-x86-64 systems).
Manuel Hiebel 2012-10-07 11:45:31 CEST

Assignee: bugsquad => pterjan

Comment 2 Rémy CLOUARD (shikamaru) 2012-12-07 21:39:55 CET
canât reproduce with ruby-1.9.3.p327-1.mga3, closing

Status: NEW => RESOLVED
CC: (none) => shikamaru
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.