uPNG ruby gem安装错误

uPNG ruby gem安装错误,ruby,rubygems,sass,compass-sass,Ruby,Rubygems,Sass,Compass Sass,我在安装gems时出错。我的系统已经安装了Ruby。我使用的是Windows7-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

我在安装gems时出错。我的系统已经安装了Ruby。我使用的是Windows7-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'

OilyPNG是用C编写的,因此必须进行编译。您需要安装并正确设置编译器,以便Ruby/Rubygems能够找到它,以便安装gem

可以使用Windows二进制文件发布gem,这样在Windows计算机上就不需要编译。不幸的是,因为我没有Windows机器,也没有Windows开发经验,所以我无法做到这一点。(但接受拉取请求:)

我的建议是遵循Rubygems给你的建议:


请更新路径以包含构建工具或下载DevKit
从'http://rubyinstaller.org/downloads”然后按照指示去做
至少http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

OilyPNG是用C编写的,因此必须进行编译。您需要安装并正确设置编译器,以便Ruby/Rubygems能够找到它,以便安装gem

可以使用Windows二进制文件发布gem,这样在Windows计算机上就不需要编译。不幸的是,因为我没有Windows机器,也没有Windows开发经验,所以我无法做到这一点。(但接受拉取请求:)

我的建议是遵循Rubygems给你的建议:


请更新路径以包含构建工具或下载DevKit
从'http://rubyinstaller.org/downloads”然后按照指示去做
至少http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

嗯..您是否尝试并按照错误消息中的说明进行操作?我不知道需要在哪里更新路径嗯..您是否尝试并按照错误消息中的说明进行操作?我不知道需要在哪里更新路径谢谢我在阅读说明后现在安装了它我希望它现在可以工作谢谢我在阅读说明后现在安装了它阅读说明我希望它现在能起作用