Forum: Ruby-dev [ruby-trunk - Bug #10647] fail install without zlib

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2014-12-25 11:05
(Received via mailing list)
Issue #10647 has been updated by Nobuyoshi Nakada.


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

----------------------------------------
Bug #10647: fail install without zlib
https://bugs.ruby-lang.org/issues/10647#change-50630

* Author: Koichi Sasada
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: build
* Target version: current: 2.2.0
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [i386-mswin32_110]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
手元のマシンでは 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.
```
This topic is locked and can not be replied to.