Project

General

Profile

Actions

Bug #10647

closed

fail install without zlib

Added by ko1 (Koichi Sasada) over 9 years ago. Updated about 9 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [i386-mswin32_110]
[ruby-dev:48783]

Description

手元のマシンでは zlib なしで mswin のビルドをしようとするんですが、
下記のように、nmake install で途中で失敗します。

$ nmake install
...
installing default gems:      c:/ko1/ruby/mswin32.ruby-2.2.0/lib/ruby/gems/2.2.0
 (build_info, cache, doc, extensions, gems, specifications)
                              bigdecimal 1.2.6
                              io-console 0.4.3
                              json 1.8.1
                              psych 2.0.8
                              rake 10.4.2
                              rdoc 4.2.0
installing bundle gems:       c:/ko1/ruby/mswin32.ruby-2.2.0/lib/ruby/gems/2.2.0
 (build_info, cache, doc, extensions, gems, specifications)
c:/ko1/tmp/ruby-2.2.0/lib/rubygems/core_ext/kernel_require.rb:54:in `require': c
annot load such file -- zlib (LoadError)
        from c:/ko1/tmp/ruby-2.2.0/lib/rubygems/core_ext/kernel_require.rb:54:in
 `require'
        from c:/ko1/tmp/ruby-2.2.0/lib/rubygems/package.rb:46:in `<top (required
)>'
        from c:/ko1/tmp/ruby-2.2.0/lib/rubygems/core_ext/kernel_require.rb:54:in
 `require'
        from c:/ko1/tmp/ruby-2.2.0/lib/rubygems/core_ext/kernel_require.rb:54:in
 `require'
        from c:/ko1/tmp/ruby-2.2.0/lib/rubygems/dependency_installer.rb:3:in `<t
op (required)>'
        from c:/ko1/tmp/ruby-2.2.0/lib/rubygems/core_ext/kernel_require.rb:54:in
 `require'
        from c:/ko1/tmp/ruby-2.2.0/lib/rubygems/core_ext/kernel_require.rb:54:in
 `require'
        from c:/ko1/tmp/ruby-2.2.0/lib/rubygems.rb:556:in `install'
        from ../tool/rbinstall.rb:717:in `block (2 levels) in <main>'
        from ../tool/rbinstall.rb:716:in `each'
        from ../tool/rbinstall.rb:716:in `block in <main>'
        from ../tool/rbinstall.rb:749:in `call'
        from ../tool/rbinstall.rb:749:in `block in <main>'
        from ../tool/rbinstall.rb:746:in `each'
        from ../tool/rbinstall.rb:746:in `<main>'
NMAKE : fatal error U1077: '.\ruby.exe' : リターン コード '0x1'
Stop.

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

zlibのサイトにあるDLLとヘッダをインストールして、--with-opt-dirか--with-zlib-dirで指定してください。

Updated by usa (Usaku NAKAMURA) over 9 years ago

Nobuyoshi Nakada wrote:

zlibのサイトにあるDLLとヘッダをインストールして、--with-opt-dirか--with-zlib-dirで指定してください。

そりゃそうなんですが、そもそもzlibがない場合はgemのインストールをスキップするか、またはzlibがなければ死ねばーかばーかとドキュメントで明記するか、どっちかが必要でしょう。

Updated by usa (Usaku NAKAMURA) over 9 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
  • Status changed from Open to Closed

r49015(とr49016)でスキップするようにしました。

Updated by naruse (Yui NARUSE) over 9 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

ruby_2_2 r49031 merged revision(s) 49015,49016.

Updated by hansdegraaff (Hans de Graaff) about 9 years ago

I'm reviewing our Gentoo patches for ruby 2.2.1 and noticed that there is a typo in this patch that causes installation to still fail without zlib:

begin
require "zlib"
rescue LoadErroe
end

This should obviously be "rescue LoadError"

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0