Gem::InstallError: The 'json' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit
Gem::InstallError: The 'json' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit
我在 Windows 7 Enterprise SP1 上构建 Ruby 项目时遇到问题。
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
。可能出了什么问题?
我运行的命令是bundle install
在这个项目的..\tindermation\node_modules\.bin
目录中:https://github.com/feelobot/tindermation
我没有初始化 DevKit 中的 ruby 安装并将其绑定到我的路径:
已下载,运行 将其提取到某处(永久)。然后 cd 到它,运行 ruby dk.rb init
和 ruby dk.rb install
。 bundle install
命令在执行这些步骤后起作用。
我在 Windows 7 Enterprise SP1 上构建 Ruby 项目时遇到问题。
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
。可能出了什么问题?
我运行的命令是bundle install
在这个项目的..\tindermation\node_modules\.bin
目录中:https://github.com/feelobot/tindermation
我没有初始化 DevKit 中的 ruby 安装并将其绑定到我的路径:
已下载,运行 将其提取到某处(永久)。然后 cd 到它,运行 ruby dk.rb init
和 ruby dk.rb install
。 bundle install
命令在执行这些步骤后起作用。