我在安装oily_png宝石时遇到错误。 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'
答案 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'