1

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 (1.7.5.4 ) and Ruby (1.9.2p290) are installed properly.

1
  • Have you tried my solution below? It seems you have posted this question on a lot of forums and groups, but this is your answer. What has happened, if you've tried? Apr 2, 2012 at 23:04

2 Answers 2

1

What happens when you do the install without the sudo? does that work? If so, it may be a gem path / permissions issue. If that works, or even if it doesn't, check out 'sudo gem install' or 'gem install' and gem locations

0
0

It is suggested to use the RVM

Also, according to rails 3.2.0 and heroku it seems you need to play with versions and typically not use the packaged version from your distribution but some GIT or other repo.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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