[Bug 256907] New: Ruby gems installed outside of Ruby load path
https://bugzilla.novell.com/show_bug.cgi?id=256907 Summary: Ruby gems installed outside of Ruby load path Product: openSUSE 10.2 Version: Final Platform: i586 OS/Version: SuSE Linux 10.1 Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mvdv@spamcop.net QAContact: qa@suse.de Hi browsing the YaST CC>>Software Management, I notice that rubygems is set to install gems into: /usr/lib/ruby/gems/1.8/gems However, ruby is installed such that the load path is: /usr/lib/ruby/site_ruby/1.8 /usr/lib/ruby/site_ruby/1.8/i586-linux /usr/lib/ruby/site_ruby /usr/lib/ruby/vendor_ruby/1.8 /usr/lib/ruby/vendor_ruby/1.8/i586-linux /usr/lib/ruby/vendor_ruby /usr/lib/ruby/1.8 /usr/lib/ruby/1.8/i586-linux . Consequently when I install gems using: #gem install 'somegemname' they are not available from within ruby if I use "require 'gempackage'". However, the openSUSE 'rubygem-xxxx' rpms seem to be installed under /usr/lib/ruby/1.8 these packages are available. It seems then that openSUSE now has ruby such that it is no longer straight forward to access user installed gems..... correct? for example (as root): #gem install 'fastercsv' --install-dir='/usr/lib/ruby/1.8' This installs without error and fastercsv.rb seems to be where it should: /usr/lib/ruby/1.8/gems/fastercsv-1.2.0/lib now (still as root): mv-laptop:/usr/lib/ruby/1.8 # irb irb(main):001:0> require 'fastercsv' LoadError: no such file to load -- fastercsv from (irb):1:in `require' from (irb):1 irb(main):002:0> puts $: /usr/lib/ruby/site_ruby/1.8 /usr/lib/ruby/site_ruby/1.8/i586-linux /usr/lib/ruby/site_ruby /usr/lib/ruby/vendor_ruby/1.8 /usr/lib/ruby/vendor_ruby/1.8/i586-linux /usr/lib/ruby/vendor_ruby /usr/lib/ruby/1.8 /usr/lib/ruby/1.8/i586-linux . => nil irb(main):003:0> It seems this is an openSUSE issue. Correct? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256907 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mrueckert@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256907 mrueckert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from mrueckert@novell.com 2007-03-22 23:09 MST ------- the correct usage is: [[[ $ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'fastercsv' => true irb(main):003:0> ]]] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com