Gem 求助 Gemfile 中配置通过 git 节点获取数据,bundle Install 不成功?

dume2007 · 2013年10月31日 · 最后由 Rei 回复于 2013年10月31日 · 3727 次阅读

Gemfile 配置是这样的: gem 'config_pal', :git => '[email protected]:turbosquid/config_pal.git'

执行 bundle install,出错: Fetching [email protected]:turbosquid/config_pal.git Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts. ERROR: Repository not found. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. Git error: command `git clone "[email protected]:turbosquid/config_pal.git"

按照文档说明,要添加 SSH Keys,添加完后执行:ssh-add -l,出现 Could not open a connection to your authentication agent. 根据 http://www.cnblogs.com/sheldonxu/archive/2012/09/17/2688281.html 说明, 先执行 ssh-agent bash,就这个出错了,

问题原因是 github 的 ip 没有在本机的 ssh 可信任列表里面,通常第一次 ssh 链接的时候会询问是否信任这个 ip。

楼主执行

git clone "[email protected]:turbosquid/config_pal.git"

有什么情况?

#2 楼 @dume2007 没有这个 repo https://github.com/turbosquid/config_pal,是不是已经被删了。

我看漏了

ERROR: Repository not found.

这句才是重点

#4 楼 @Rei 我把这个 Gem 注释掉了,bundle Install 成功。不过启动后浏览出现问题,不知道跟这个 gem 有没有关系啊?

#5 楼 @dume2007 目前看不出有没有关系,毕竟去掉了一个 gem,而且也不知道原来这个 gem 是做什么用的。

看错误提示,第 18 行,undefined method query for nil:NillClass,这一行哪里调用了 query 呢?就是 @search 这个实例变量,而这个实例变量是怎么来的,要你看看代码。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号