Project

General

Profile

ActionsLike0

Bug #7040

closed

gem install で特定の gem がインストールできない

Added by hsbt (Hiroshi SHIBATA) over 12 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-09-20 trunk 36993) [x86_64-darwin12.2.0]
Backport:
[ruby-dev:<unknown>]

Description

trunk で特定の gem(例えば libv8等)をインストールしようとすると必ず失敗してしまいます。

% gem i libv8
ERROR: While executing gem ... (Zlib::BufError)
buffer error

Twitter 上で nagachika さんから Zlib の GVL 対応?が原因ではないかとコメントを頂きましたが、上記のエラー表示以降は調査しきれていません。


Files

zlib_inflate_buf_error.patch (634 Bytes) zlib_inflate_buf_error.patch nagachika (Tomoyuki Chikanaga), 10/08/2012 12:29 AM

Added by nagachika (Tomoyuki Chikanaga) about 12 years ago

Revision f21ac99e

  • ext/zlib/zlib.c (zstream_run_func): don't call inflate() when
    z->stream.avail_in == 0. it return Z_BUF_ERROR.
    but deflate() could be called with z->stream->avail_in == 0 because
    it has hidden buffer in z->stream->state (opaque structure).
    fix for gem install error. [ruby-dev:46149] [Bug #7040]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

ActionsLike0

Also available in: Atom PDF