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

Please help.

link|improve this question

38% accept rate
feedback

2 Answers

  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.
link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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