安装json gem时出错:'json'原生gem需要安装构建工具 [英] Error installing json gem: The 'json' native gem requires installed build tools

查看:135
本文介绍了安装json gem时出错:'json'原生gem需要安装构建工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图安装这个gem时,它声称我需要安装一个devkit,尽管我确信我确实拥有它。它还表明,我需要更新我的系统变量,我已直接链接到红宝石中的devkit文件。我已经看到了堆栈溢出的其他问题,他们没有处理我的问题。
这里是完整的错误信息:

  C:\ Users \Mahamoud> gem install json 
错误:安装json时出错:
'json'原生gem需要安装构建工具。

请更新您的PATH以包含构建工具或从'http://rubyinstaller.org/downloads'下载DevKit
并按照说明
'http:// github.com/oneclick/rubyinstaller/wiki/Development-Kit'

我试过卸载并重新安装安装红宝石,仍然没有结果。
i将我的开发工具包放置在C:\Ruby193\bin中。

这里:



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



为了测试你的安装是否正常工作,你应该试试这个:

  gem install json --platform = ruby​​ 

所以,你应该已经安装了json。而不是重新安装红宝石,我会尝试重新安装DevKit ...并按照指示。


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

解决方案

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.

这篇关于安装json gem时出错:'json'原生gem需要安装构建工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆