2017-05-02 37 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命令。

相關問題