Problems on installation

Francisco Yanez's Avatar

Francisco Yanez

08 Mar, 2011 08:19 PM

I just installed Ruby then I download rubygems 1.6.1 and I extract the zip dir.. cd to the dir and do ruby setup.rb... and this is what I get:

RubyGems 1.6.1 installed

=== 1.6.1 / 2011-03-03

Bug Fixes:

  • Installation no longer fails when a dependency from a version that won't be installed is unsatisfied.
  • README.rdoc now shows how to file tickets and get help. Pull Request #40 by Aaron Patterson.
  • Gem files are cached correctly again. Patch #29051 by Mamoru Tasaka.
  • Tests now pass with non-022 umask. Patch #29050 by Mamoru Tasaka.

RubyGems installed the following executables:


I tough gems was installed but when I do "gem install rails" i get :

ERROR: Loading command: install (LoadError)

no such file to load -- zlib

ERROR: While executing gem ... (NameError)

uninitialized constant Gem::Commands::InstallCommand

So I guess something went wrong or gem is not installed can you help me?

  1. Support Staff 1 Posted by Nick Quaranto on 17 Mar, 2011 03:59 PM

    Nick Quaranto's Avatar

    Sounds like you don't have Ruby installed with zlib enabled.

    If you're using RVM, this is pretty easy:

    You'll probably need OpenSSL too:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac