![在 Ubuntu 11.10 上安装 Rails 时出错(Gem::DependencyError)](https://linux22.com/image/816192/%E5%9C%A8%20Ubuntu%2011.10%20%E4%B8%8A%E5%AE%89%E8%A3%85%20Rails%20%E6%97%B6%E5%87%BA%E9%94%99%EF%BC%88Gem%3A%3ADependencyError%EF%BC%89.png)
我正在尝试在 Ubuntu 11.10 上安装 Ruby on Rails,但收到此错误:
$ 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)
我怎样才能解决这个问题?
注意:Git(1.7.5.4)和Ruby(1.9.2p290)已正确安装。
答案1
尝试这个。
sudo gem 安装 rails -v 3.2.2
然后你就可以出发了。