gem install json -v 1.7.3 给出“请更新您的 PATH 以包含构建工具" [英] gem install json -v 1.7.3 gives 'Please update your PATH to include build tools'
问题描述
当我跑步时:
rails new blog
我明白了:
Installing json (1.7.3)
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 (1.7.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.3'` succeeds before bundling.
当我跑步时:
gem install json -v 1.7.3
我明白了:
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'
我使用的是 Windows 8.我的路径中有 c:
uby193in
.我该怎么做才能纠正这些错误?
I'm using Windows 8. I do have c:
uby193in
in my path. What do I do to remedy these errors?
推荐答案
确保安装了 devkit(勾选将更新路径的复选框):您可能还需要重新安装 ruby.
Make sure you install the devkit (ticking the checkboxes that will update the path) : You might need to reinstall ruby too.
安装 DevKit
从这里下载开发工具包http://rubyinstaller.org/downloads/
此时的 DevKit url 用于 Ruby 1.8.7 和 1.9.3:DevKit-tdm-32-4.5.2
DevKit url at this time For use with Ruby 1.8.7 and 1.9.3: DevKit-tdm-32-4.5.2
用于 Ruby 2.0 及更高版本(仅限 32 位版本):DevKit-mingw64-32-4.7.2
For use with Ruby 2.0 and above (32bits version only): DevKit-mingw64-32-4.7.2
用于 Ruby 2.0 及更高版本(仅限 x64 - 64 位)DevKit-mingw64-64-4.7.2
For use with Ruby 2.0 and above (x64 - 64bits only) DevKit-mingw64-64-4.7.2
按照此处的说明进行操作.
或简短说明:
解压压缩包
打开命令行并进入解压文件夹
open command-line and go to unzipped folder
ruby dk.rb 初始化
ruby dk.rb init
ruby dk.rb 安装
ruby dk.rb install
gem install rdiscount --platform=ruby
gem install rdiscount --platform=ruby
这篇关于gem install json -v 1.7.3 给出“请更新您的 PATH 以包含构建工具"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!