我的 Windows 计算机上安装了 Ruby 1.8.7 和 Ruby 1.9.2。
当我这样做时在我的控制台中ruby -v
它给了我 Ruby 1.8.7
现在当我尝试时
gem install rails -v 2.3.8
我收到这个错误
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rails locally or in a repository
我的 RubyGems 版本显示 1.3.5 所以我尝试更新它
gem update --system
我收到这个错误
Updating RubyGems
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::E10013: An attempt was made to access a socket in a way forbidden by
its access permissions. - connect(2) (http://gems.rubyforge.org/yaml)`
出了什么问题?
尝试一下。
gem sources
这将显示您正在使用哪些来源。
gem sources -a http://rubygems.org
gem sources -a http://gems.github.com
gem sources -a http://gems.rubyforge.org/
这些将添加最常用的宝石来源。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)