Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am tryng to install ruby on rails in centos server on AWS. I can't install rails on the server. It is giving some error. Here is what I am getting while installing rails.

#gem install rails
   ERROR:  Error installing rails:
    gzip error installing /usr/local/lib/ruby/gems/1.8/cache/activesupport-3.0.8.gem
share|improve this question
  1. Make sure you have Ruby 1.9.2 installed. Rails 3 requires Ruby 1.8.7 or 1.9.2. Ruby-1.9.2 has a better performance.
  2. Use "file" to determine the type of the 'gem' file you downloaded
  3. If possible, use 'rvm' to install and manage Ruby, Rails and other gems. Warning: compilation on AWS is slow.
share|improve this answer

Install zlib-devel package on S.O. and recompile your ruby version

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.