gem install json -v 1.7.3给出'请更新PATH以包含构build工具'
当我运行:
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.我的path中有c:\ruby193\bin 。 我该如何补救这些错误? 
确保你安装了开发包(勾选将更新path的checkbox):你也许需要重新安装ruby。
安装DevKit
从这里下载开发工具包http://rubyinstaller.org/downloads/
DevKiturl在这个时候用于Ruby 1.8.7和1.9.3: https : //github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
用于Ruby 2.0及更高版本(仅限32位版本): http : //dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe 2
用于Ruby 2.0及更高版本(仅适用于x64 – 64位) http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe 3
按照说明在这里: https : //github.com/oneclick/rubyinstaller/wiki/development-kit
或简短说明:
解压缩邮件
打开命令行并转到unzipperd文件夹
rubydk.rb init
rubydk.rb安装
gem install rdiscount –platform = ruby
 有时候当你运行ruby dk.rb init你会得到这样的错误 

 为了解决这个问题,你必须改变命令提示符窗口的编码。 做这种types的chcp 1256 ,你会收到这样的消息:活动代码页:1256 
现在你可以毫无问题地运行这个命令。
祝你好运 。
如果您知道已经安装了正确的DevKit(例如:通过巧克力 ),那么您只需运行包含的脚本来设置环境variables即可。
在cmd中:
 C:\> d:\path\to\DevKit2\devkitvars.bat 
在PowerShell中:
 PS> . d:\path\to\DevKit2\devkitvars.ps1 
这些脚本将在您当前的命令窗口中设置正确的path。
 在根据您的configuration从以下links之一extract新的DevKit folder之前,请先删除旧的DevKit folder : 
DevKiturl在这个时候用于Ruby 1.8.7和1.9.3: https : //github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
用于Ruby 2.0及更高版本(仅限32位版本): http : //dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe2
用于Ruby 2.0及更高版本(仅适用于x64 – 64位) http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe3