【问题标题】:oily_png ruby gem installation erroroily_png ruby​​ gem 安装错误
【发布时间】:2012-07-04 04:12:51
【问题描述】:

安装oily_png gems 时出现错误。 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'

【问题讨论】:

  • 嗯..您是否尝试按照错误消息中的说明进行操作?
  • 不知道哪里需要更新PATH

标签: ruby rubygems sass compass-sass


【解决方案1】:

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'

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2011-04-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多