2012-07-03 258 views
2

我在安装oily_png宝石时遇到错误。 Ruby已经安装了我的系统。我在Windows 7 - 64位。oily_png红宝石宝石安装错误

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' 

enter image description here

+0

Umm..did你尝试按照错误消息的指示? – Casper

+0

我不知道我需要更新路径 –

回答

4

OilyPNG是用C,因此具有进行编译。您需要安装并正确设置编译器,以便Ruby/Rubygems可以找到它来安装gem。

可以用Windows二进制发布gem,这样在Windows机器上就不需要编译了。不幸的是,因为我没有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'

+0

谢谢我已经在阅读说明书后立即安装它http://i.imgur.com/gylKb.jpg我希望它现在能够工作 –