加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 安装rails时找不到Gem存储库

发布时间:2020-12-17 01:44:46 所属栏目:百科 来源:网络整理
导读:我的 Windows机器上安装了 Ruby 1.8.7和 Ruby 1.9.2. 在我的控制台,当我做ruby -v时,它给了我Ruby 1.7.7 现在,当我尝试 gem install rails -v 2.3.8 我收到这个错误 ERROR: http://gems.rubyforge.org/ does not appear to be a repositoryERROR: could not
我的 Windows机器上安装了 Ruby 1.8.7和 Ruby 1.9.2.

在我的控制台,当我做ruby -v时,它给了我Ruby 1.7.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/

这些将添加最常用的宝石来源.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读