LoginSignup
1
0

More than 5 years have passed since last update.

ruby gem mirrorコマンドエラー

Posted at

Windows 10環境でgem mirrorコマンドがエラーになります。
Linuxでは正常にミラーができるのでOS依存でしょうか。
回避策、ありますでしょうか。

OS Windows 10 1607
Ruby ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
dev kit DevKit-mingw64-32-4.7.2-20130224-1151
[gem list]
c:\Ruby23\devkit>gem list

*** LOCAL GEMS ***

bigdecimal (1.2.8)
bundler (1.16.1)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3)
minitest (5.8.5)
net-http-persistent (2.9.4)
net-telnet (0.1.1)
power_assert (0.2.6)
psych (2.1.0)
rake (10.4.2)
rdoc (4.2.1)
rubygems-mirror (1.1.0)
test-unit (3.1.5)

[現象]
c:\Ruby23\devkit>gem mirror
Fetching: http://rubygems.org/specs.4.8
Fetching: http://rubygems.org/prerelease_specs.4.8
Fetching: http://rubygems.org/latest_specs.4.8
get: http://rubygems.org/specs.4.8.gz, 1
ERROR: While executing gem ... (Zlib::GzipFile::Error)
unexpected end of file
[詳細]
c:\Ruby23\devkit>gem mirror --debug -V
NOTE: Debugging mode prints all exceptions even when rescued
Exception LoadError' at C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 - cannot load such file -- net/http/pipeline
Exception
LoadError' at C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:132 - cannot load such file -- net/http/pipeline
Fetching: http://rubygems.org/specs.4.8
Fetching: http://rubygems.org/prerelease_specs.4.8
Fetching: http://rubygems.org/latest_specs.4.8
get: http://rubygems.org/specs.4.8.gz, 1
Exception Errno::EEXIST' at C:/Ruby23/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - c:/Ruby23/gem
Exception
EOFError' at C:/Ruby23/lib/ruby/2.3.0/rubygems/util.rb:17 - end of file reached
Exception Zlib::GzipFile::Error' at C:/Ruby23/lib/ruby/2.3.0/rubygems/util.rb:17 - unexpected end of file
ERROR: While executing gem ... (Zlib::GzipFile::Error)
unexpected end of file
C:/Ruby23/lib/ruby/2.3.0/rubygems/util.rb:17:in
read'
C:/Ruby23/lib/ruby/2.3.0/rubygems/util.rb:17:in gunzip'
C:/Ruby23/lib/ruby/2.3.0/rubygems.rb:525:in
gunzip'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygems-mirror-1.1.0/lib/rubygems/mirror.rb:37:in block (2 levels) in update_specs'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygems-mirror-1.1.0/lib/rubygems/mirror.rb:37:in
open'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygems-mirror-1.1.0/lib/rubygems/mirror.rb:37:in block in update_specs'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygems-mirror-1.1.0/lib/rubygems/mirror.rb:32:in
each'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygems-mirror-1.1.0/lib/rubygems/mirror.rb:32:in update_specs'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygems-mirror-1.1.0/lib/rubygems/mirror/command.rb:59:in
block in execute'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygems-mirror-1.1.0/lib/rubygems/mirror/command.rb:39:in each'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygems-mirror-1.1.0/lib/rubygems/mirror/command.rb:39:in
execute'
C:/Ruby23/lib/ruby/2.3.0/rubygems/command.rb:308:in invoke_with_build_args'
C:/Ruby23/lib/ruby/2.3.0/rubygems/command_manager.rb:169:in
process_args'
C:/Ruby23/lib/ruby/2.3.0/rubygems/command_manager.rb:139:in run'
C:/Ruby23/lib/ruby/2.3.0/rubygems/gem_runner.rb:55:in
run'
C:/Ruby23/bin/gem.cmd:29:in `'

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0