2 jajiel Jajiel 于 2016.03.16 17:53 提问

$ 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个回答

zhangzehai2234
zhangzehai2234   2016.03.16 18:11

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

XIAO_XIAO_C
XIAO_XIAO_C   2016.07.08 15:27

window系统下出现的ruby组件缺失问题,建议重新更新,更改为淘宝源。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!