Rubygems under linux

I got ruby installed.

I got rubygems installed, and these messages confirmed success:

RubyGems 1.3.6 installed

RubyGems installed the following executables:
/usr/local/bin/gem

but when I run gem list, I get this:

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- zlib (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:1
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/query_command.rb:3
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/list_command.rb:2
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:169:in
load_and_instantiate' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:90:in[]’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:146:in
find_command' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:133:inprocess_args’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:104:in
run' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:inrun’
from /usr/local/bin/gem:21

What am I missing?

If you’re on ubuntu, this top google result for “ruby zlib ubuntu” might
help:
http://stackoverflow.com/questions/769496/ubuntu-noob-rails-install-fails-on-zlib

good luck,
/Shawn

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs