2

oily_png gemのインストール時にエラーが発生します。Ruby はすでに私のシステムにインストールされています。私は Windows 7 - 64 ビットを使用しています。

C:\Users\jitendra>gem install oily_png
Fetching: oily_png-1.0.2.gem (100%)
ERROR:  Error installing oily_png:
        The 'oily_png' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

ここに画像の説明を入力

4

1 に答える 1

4

OilyPNG は C で記述されているため、コンパイルする必要があります。Ruby/Rubygems が gem をインストールするためにコンパイラを見つけられるように、コンパイラをインストールして適切に設定する必要があります。

Windows マシンでコンパイルする必要がないように、Windows バイナリで gem をリリースすることが可能です。残念ながら、私は Windows マシンを持っておらず、Windows 開発の経験もないため、これを行うことができません。(ただし、プルリクエストは受け入れられます:)

私のアドバイスは、Rubygems があなたに与えたアドバイスに従うことです。

Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

于 2012-07-03T17:35:28.353 に答える