Jajiel 2016-03-16 09:53 采纳率: 0%
浏览 4983

$ gem sources -a https://ruby.taobao.org/ 报错

$ gem sources -a https://ruby.taobao.org/ --debug
NOTE: Debugging mode prints all exceptions even when rescued
Exception NameError' at C:/Ruby22-x64/lib/ruby/2.2.0/fiddle/import.rb:153 - uninitialized constant Fiddle::Function::STDCALL
Exception
Win32::Registry::Error' at C:/Ruby22-x64/lib/ruby/2.2.0/win32/registry.rb:249 - The system cannot find the file specified.
Exception Win32::Registry::Error' at C:/Ruby22-x64/lib/ruby/2.2.0/win32/registry.rb:249 - The system cannot find the file specified.
Exception
Win32::Registry::Error' at C:/Ruby22-x64/lib/ruby/2.2.0/win32/registry.rb:249 - The system cannot find the file specified.
Exception Win32::Registry::Error' at C:/Ruby22-x64/lib/ruby/2.2.0/win32/registry.rb:249 - No more data is available.
Exception
Resolv::DNS::Config::NXDomain' at C:/Ruby22-x64/lib/ruby/2.2.0/resolv.rb:546 - _rubygems._tcp.ruby.taobao.org
Exception Resolv::DNS::Config::NXDomain' at C:/Ruby22-x64/lib/ruby/2.2.0/resolv.rb:546 - _rubygems._tcp.ruby.taobao.org.beijing.objectiva.local
Exception
Resolv::DNS::Config::NXDomain' at C:/Ruby22-x64/lib/ruby/2.2.0/resolv.rb:546 - _rubygems._tcp.ruby.taobao.org.Objectiva.local
Exception Resolv::ResolvError' at C:/Ruby22-x64/lib/ruby/2.2.0/resolv.rb:491 - DNS result has no information for _rubygems._tcp.ruby.taobao.org
Exception
Errno::EEXIST' at C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:252 - File exists @ dir_s_mkdir - C:/Users/winstonqiao/.gem/specs/ruby.taobao.org%443
Exception Errno::ENOENT' at C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/remote_fetcher.rb:306 - No such file or directory @ rb_file_s_stat - C:/Users/winstonqiao/.gem/specs/ruby.taobao.org%443/specs.4.8
Exception
OpenSSL::SSL::SSLErrorWaitReadable' at C:/Ruby22-x64/lib/ruby/2.2.0/openssl/buffering.rb:182 - read would block
Exception OpenSSL::SSL::SSLError' at C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923 - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Exception
OpenSSL::SSL::SSLError' at C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:931 - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Exception Gem::RemoteFetcher::FetchError' at C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/request.rb:88 - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)
Exception
Gem::RemoteFetcher::FetchError' at C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/remote_fetcher.rb:285 - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)
Error fetching https://ruby.taobao.org/:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)

  • 写回答

2条回答

  • 有梦想的攻城狮 Java领域优质创作者 2016-03-16 10:11
    关注

    $ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
    $ gem sources -l

    评论

报告相同问题?

悬赏问题

  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 请教一下c语言的代码里有一个地方不懂
  • ¥15 opencv 无法读取视频
  • ¥15 用matlab 实现通信仿真
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了