Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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'm trying to install Ruby on Rails on Ubuntu 11.10, but receiving this error:

$ sudo gem install rails
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: rails requires activesupport (= 3.2.3), actionpack (= 3.2.3), activerecord (= 3.2.3), activeresource (= 3.2.3), actionmailer (= 3.2.3), railties (= 3.2.3)

How can I fix this?

Note: Git ( ) and Ruby (1.9.2p290) are installed properly.

share|improve this question

Try this.

sudo gem install rails -v 3.2.2

And then you should be good to go.

share|improve this answer
unfortunately, it doesn't work... – sonnuforevis Apr 2 '12 at 23:06
@PauloCassiano Try this: sudo gem update --system && sudo gem install rails -v 3.2.3 – James Apr 3 '12 at 1:35

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.