简体   繁体   中英

Error installing Rails on Ubuntu 11.10 (Gem::DependencyError)

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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM