Problem installing rubygems

A

Andreas Habel

After downloading the latest sources of ruby-gems 8.10 and
ruby setup.rb all
I ran into errors in post_install.rb. I`ve located the position in code
and reproduced the error in irb:
Any ideas ?
btw. running SuSE 9.3

thanks,
Andreas

-------

def install_sources
$: << "lib"
require 'rubygems'
Gem::manage_gems
Dir.chdir("pkgs/sources") do
load "sources.gemspec"
spec = Gem.sources_spec
gem_file = Gem::Builder.new(spec).build
Gem::Installer.new(gem_file).install(true, Gem.dir, false)
end
end

-------

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> Gem::manage_gems
LoadError: No such file to load -- zlib
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:9
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
`manage_gems'
from (irb):2
 
J

Jim Weirich

After downloading the latest sources of ruby-gems 8.10 and


I ran into errors in post_install.rb. I`ve located the position in code
and reproduced the error in irb:
Any ideas ?
btw. running SuSE 9.3

I don't think I've seen this issue in SuSE before. This is a common problem
in system that don't bundle zlib with the base ruby installation (or building
from source on systems that don't have the zipping libraries).

You can test this by typing "require 'zlib'" in irb.

See also http://docs.rubygems.org/read/chapter/15#page66 (although the entry
is a bit brief).
 
A

Andreas Habel

Jim said:
I don't think I've seen this issue in SuSE before. This is a common problem
in system that don't bundle zlib with the base ruby installation (or building
from source on systems that don't have the zipping libraries).

You can test this by typing "require 'zlib'" in irb.

See also http://docs.rubygems.org/read/chapter/15#page66 (although the entry
is a bit brief).
Thanks for your help. I build ruby from source and zlib-devel wasn`t
installed because my DVD was only SuSE 9.3 personal ;-(

Now everything works fine!

Andreas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top