Gem::InstallError: The ‘json’ native gem requires installed build tools.[fixed]

Gem::InstallError: The 'json' native gem requires installed build tools

to solved this proble,
first:

C:>gem install json
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.

no effect for me..next
second :

gem install ruby-pure

no effect again..:D, next
third:
download developer kit for ruby on http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe or etc.
Followed the instructions given on link https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
extract all developer kit

cd /devkit[after extracted]

run

ruby dk.rb init.

result:

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

run dk.rb

ruby dk.rb install

after all prosess now you will run bundle install on path your application

bundle install

result :

5 thoughts on “Gem::InstallError: The ‘json’ native gem requires installed build tools.[fixed]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s