简体   繁体   English

在Mac OS 10.8.3中安装滑轨时遇到问题

[英]Trouble installing rails in Mac OS 10.8.3

I'm trying to install RoR following railstutorial.org which is pretty similar to this one: http://www.creativereason.com/how-to-install-ruby-on-rails-mountain-lio.html 我正在尝试在railstutorial.org上安装RoR,它与此非常相似: http ://www.creativereason.com/how-to-install-ruby-on-rails-mountain-lio.html

But, when i type "gem install rails" in command, i'm getting this error and couldn't install RoR. 但是,当我在命令中键入“ gem install rails”时,出现此错误,无法安装RoR。

I'm getting this error: 我收到此错误:

ERROR: Could not find a valid gem 'rails' (>= 0) in any repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) too many connection resets ( http://production.s3.rubygems.org/latest_specs.4.8.gz ) 错误:在任何存储库中找不到有效的gem'rails'(> = 0)错误:执行gem ...(Gem :: RemoteFetcher :: FetchError)时,连接重置次数过多( http://production.s3.rubygems .org / latest_specs.4.8.gz

Does someone know how to fix this and install rails correctly? 有人知道如何解决此问题并正确安装滑轨吗?

Install RVM and ruby: 安装RVM和ruby:

$ curl -L https://get.rvm.io | $ curl -L https://get.rvm.io | bash -s stable --ruby bash -s稳定--ruby

Then Rails: 然后Rails:

rvm gem install rails

Another possibility is that rubygems is out of date: 另一种可能性是红宝石已经过时:

gem install rubygems-update

and/or 和/或

gem update --system

I found the solution: I had to disable Avast antivirus! 我找到了解决方案:我必须禁用Avast防病毒软件! Now, it's working! 现在,它正在工作!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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