Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

  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

 
discard

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.