我正在尝试通过Ruby gem安装guard。即使我尝试通过引用此link来安装以前的版本,我也会收到以下错误。
C:\>gem install guard
Fetching: thor-0.18.1.gem (100%)
Successfully installed thor-0.18.1
Fetching: timers-1.1.0.gem (100%)
Successfully installed timers-1.1.0
Fetching: celluloid-0.15.2.gem (100%)
Successfully installed celluloid-0.15.2
Fetching: rb-fsevent-0.9.3.gem (100%)
Successfully installed rb-fsevent-0.9.3
Fetching: ffi-1.9.3.gem (100%)
ERROR: Error installing guard:
The 'ffi' 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'
C:\>gem install ffi --version='1.0.9'
Fetching: ffi-1.0.9.gem (100%)
ERROR: Error installing ffi:
The 'ffi' 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 :(得分:3)
获取安装程序
1.Ruby安装程序
2.开发套件
根据您的32或64位机器相应下载它 您可以从这里下载开发工具包download development kit from here
将DevKit解压缩到C:\ RubyDevKit后,在cmd提示符下运行以下命令: C:\ RubyDevKit> devkitvars.bat 将DevKit添加到PATH ...
C:\RubyDevKit>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193
初始化完成!请查看并修改自动生成的内容 'config.yml'文件,以确保它包含所有的根目录 您想要通过DevKit增强安装的Rubies。
C:\RubyDevKit>ruby dk.rb install
[INFO]为'C:/ Ruby193'更新便利通知gem覆盖 [INFO]安装'C:/Ruby193/lib/ruby/site_ruby/devkit.rb'
然后输入命令提示符
安装指南针"gem install compass"
已完成!!!