新手问题 Ruby 切换了 gem sources 但是运行 bundle install 的时候,仍然是 fetch 淘宝的镜像链接

kevinli · 2016年08月17日 · 最后由 kevinli 回复于 2016年08月22日 · 6459 次阅读
kevindeMacBook-Pro:dangqi kevin$ gem sources
*** CURRENT SOURCES ***

https://gems.ruby-china.org/
kevindeMacBook-Pro:dangqi kevin$ bundle install
Fetching source index from https://ruby.taobao.org/
Could not verify the SSL certificate for
https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
kevindeMacBook-Pro:dangqi kevin$ 

或者解决 openssl 的问题后页可以,

kevindeMacBook-Pro:dangqi kevin$ rails server
Could not find nokogiri-1.6.6.2 in any of the sources
Run `bundle install` to install missing gems.
kevindeMacBook-Pro:dangqi kevin$ 

但是这个 gem 插件就装不上了

发现 ruby 的 gem 安装各种问题,都快崩溃了,求助大神

Gemfile 里面 source 是 ruby.taobao.org 吧

#1 楼 @huacnlee gem 的源和 bundle 的源不一样 执行 bundle config 看一下是不是还是淘宝。如何是修改 ~/.boundle/config 中的源

#1 楼 @huacnlee 是的,gemfile 配置有问题,我修改了,谢谢

如果不想用就彻底点:gem sources --remove https://ruby.taobao.org/ 当然了首先要把 Gemfile 里边儿的 sources 给改了

huacnlee 关闭了讨论。 08月22日 11:54

谢谢大家,问题已经解决了,还是咱们 rubychina 的镜像好用啊

谢谢大家,问题已经解决了,还是咱们 rubychina 的镜像好用啊

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