2017-05-02 20 views
0

我在Windows 7 Enterprise SP1上构建Ruby项目时遇到问题。Gem :: InstallError:'json'原生Gem需要安装构建工具。请更新您的路径以包含构建工具或下载DevKit

Fetching gem metadata from https://rubygems.org/............ 
Fetching version metadata from https://rubygems.org/.. 
Resolving dependencies... 
Using awesome_print 1.7.0 
Installing json 2.1.0 with native extensions 
Using mini_portile2 2.1.0 
Using ffi 1.9.18 (x64-mingw32) 
Using rubyzip 1.2.1 
Using websocket 1.2.4 
Using tomlrb 1.2.4 
Using bundler 1.14.6 
Gem::InstallError: The 'json' 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' 

An error occurred while installing json (2.1.0), and Bundler cannot continue. 
Make sure that `gem install json -v '2.1.0'` succeeds before bundling. 

我在我的PATH环境变量中包含了Ruby和DevKit,即C:\Ruby22-x64\bin;C:\Ruby-DevKit\bin。可能会出现什么问题?

我跑的命令是在..\tindermation\node_modules\.bin目录这个项目的bundle installhttps://github.com/feelobot/tindermation

回答

1

我没有初始化,在我的devkit红宝石设备绑定到我的PATH:

下载了它,跑它将其提取到某处(永久)。然后cd到它,运行ruby dk.rb initruby dk.rb install。按照以下步骤执行bundle install命令。

相关问题