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

狂风中的少年 提交于 2019-12-08 04:00:00

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/25060514/error-installing-json-gem-the-json-native-gem-requires-installed-build-tools

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!