ERROR: Error installing json:The 'json' native gem requires installed build tools.


ERROR:  Error installing json:The 'json' native gem requires installed build tools.
C:\ruby\blog>gem install json -v '1.8.3'ERROR:  Error installing json:The 'json' native gem requires installed build tools.Please update your PATH to include build tools or download the DevKitfrom 'http://rubyinstaller.org/downloads' and follow the instructionsat 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
Windowsの下でRuby Rails Web開発環境を構築する際にこの問題に遭遇しました.
このエラーの原因はDevKitがインストールされていないことです
DevKit
devkitを加えると、rubyにはmingw 32のローカルコンパイル環境があり、このローカルコンパイル環境は自動的に呼び出されます.インストールするgemがローカルコンパイルを必要とする場合にのみdevkitが呼び出されます. 
http://rubyinstaller.org/add-ons/devkit
DevKitのダウンロード
http://rubyinstaller.org/downloads
DevKitのインストール
1、実行して、一つのディレクトリに解凍して、例えば:C:DevKit
2、コマンドラインを開き、このディレクトリに切り替えます.
3、命令を実行する:ruby dk.rb init
4、configを修正する.ymlファイル
[plain]  view plain copy
# This configuration file contains the absolute path locations of all  
# installed Rubies to be enhanced to work with the DevKit. This config  
# file is generated by the 'ruby dk.rb init' step and may be modified  
# before running the 'ruby dk.rb install' step. To include any installed  
# Rubies that were not automagically discovered, simply add a line below  
# the triple hyphens with the absolute path to the Ruby root directory.  
#  
# Example:  
#  
# ---  
- C:\Ruby22-x64  
# - C:/ruby192dev  
#  
---  
[plain]  view plain copy
C:Ruby 22-x 64は私のRubyインストールディレクトリです.
5、命令を実行する:ruby dk.rb install
[plain]  view plain copy
C:\DevKit>ruby dk.rb install  
[INFO] Updating conve
DevKitのインストールが完了したら、コマンドを実行してJSONパッケージをインストールします:gem install json-v'1.8.3'
インストール中に次の問題が発生する可能性があります.
C:\ruby\blog>gem install json -v '1.8.3'
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ECONNABORTED: An established connection was aborted by the software i
n your host machine. - SSL_connect (https://api.rubygems.org/quick/Marshal.4.8/json-1.8.3.gemspec.rz)

これはネットのせいかもしれませんが、何度もやってみるといいでしょう.
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit