最近升级到os x,installed ruby 2.0
尝试安装rails 4
Neils-MacBook-Pro:代码neilpatel $ rails --version
此系统上当前未安装Rails。要获取最新版本,只需输入:
$ sudo gem install rails
然后您可以重新运行“rails”命令。
Neils-MacBook-Pro:code neilpatel$ sudo gem install rails
Fetching: i18n-0.6.5.gem (100%) Successfully installed i18n-0.6.5 Fetching: multi_json-1.8.2.gem (100%) Successfully installed multi_json-1.8.2 ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Operation timed out - connect(2) (https://rubygems.org/gems/tzinfo-0.3.38.gem)
答案 0 :(得分:1)
gem install rails --version=4.0.0.rc1
应在安装gem之前指定rails的版本。
如果您的ruby version is 2.0.0
然后安装rails 4
gem。