我正在尝试在我的 Ubuntu 11.04 系统中将 Rails 2.3.5 升级到 3.2.8。我安装了红宝石和红宝石宝石。我还安装了所需的库。我已经按照以下链接 http://cicolink.blogspot.in/2010/10/how-to-install-ruby-rails-and.html
但是当我运行 sudo gem install rails 时,我在命令行中收到以下错误
WARNING: Error fetching data: SocketError: getaddrinfo: Name or service not known (http://rubygems.org/latest_specs.4.8.gz)
WARNING: Error fetching data: SocketError: getaddrinfo: Name or service not known (http://rubygems.org/specs.4.8.gz)
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: mail requires mime-types (~> 1.16), treetop (~> 1.4.8)
在过去的两天里,我一直试图弄清楚这一点。请帮忙
(但是当我运行 sudo apt-get install rails 时,它成功安装了 Rails2.3.5)