繁体   English   中英

安装json gem时出错:“ json”本机gem需要安装的构建工具

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

当我尝试安装此gem时,它声称我需要安装devkit,尽管我确定我确实安装了它。 它还建议我需要在PATH中更新我的系统变量,该变量已直接链接到ruby中的devkit文件。 我在Stack Overflow上看到了其他问题,但这些问题与我的问题无关。 这是完整的错误消息:

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'

我试过卸载并重新安装ruby,仍然没有结果。 我的devkit位于C:\\ Ruby193 \\ bin中

这里有安装DevKit的详细步骤:

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

为了测试您的安装是否正常运行,您应该尝试以下操作:

gem install json --platform=ruby

因此,您应该已经安装了json。 与其重新安装ruby,不如尝试重新安装DevKit ...并完全按照说明进行操作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM