Mahamo101
Mahamo101

Reputation: 31

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

When i'm trying to install this gem it claims that i need to have a devkit installed although i am sure i do have it. It also suggests that i need to update my systems variables in PATH which i have directly linked to the devkit file in ruby. I have seen other questions on Stack Overflow and they didn't work with my issue. here is the full error message:

C:\Users\Mahamoud>gem install json
ERROR:  Error installing json:
        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'

I've tried uninstalling and re installing ruby and still no result. i have my devkit located in the C:\Ruby193\bin

Upvotes: 1

Views: 17120

Answers (1)

7stud
7stud

Reputation: 48589

There are detailed steps for installing DevKit here:

https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

And to test that your installation is working correctly, you are supposed to try this:

gem install json --platform=ruby

So, you should already have json installed. Instead of reinstalling ruby, I would try reinstalling DevKit...and follow the directions EXACTLY.

Upvotes: 4

Related Questions