gem install json -v 1.7.3给出了“请更新您的PATH以包括构建工具" [英] gem install json -v 1.7.3 gives 'Please update your PATH to include build tools'

查看:151
本文介绍了gem install json -v 1.7.3给出了“请更新您的PATH以包括构建工具"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑步时:

rails new blog

我得到:

Installing json (1.7.3)
Gem::InstallError: 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'
An error occurred while installing json (1.7.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.3'` succeeds before bundling.

我跑步时:

gem install json -v 1.7.3

我得到:

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'

我正在使用Windows8.我的路径中确实有c:\ruby193\bin.我该怎么办才能纠正这些错误?

I'm using Windows 8. I do have c:\ruby193\bin in my path. What do I do to remedy these errors?

推荐答案

确保安装devkit(选中将更新路径的复选框): 您可能还需要重新安装Ruby.

Make sure you install the devkit (ticking the checkboxes that will update the path) : You might need to reinstall ruby too.

安装DevKit

从此处下载开发套件 http://rubyinstaller.org/downloads/

DevKit网址与Ruby 1.8.7和1.9.3一起使用:

DevKit url at this time For use with Ruby 1.8.7 and 1.9.3: DevKit-tdm-32-4.5.2

用于Ruby 2.0及更高版本(仅32位版本): DevKit-mingw64-32- 4.7.2

For use with Ruby 2.0 and above (32bits version only): DevKit-mingw64-32-4.7.2

用于Ruby 2.0及更高版本(仅x64-仅64位) DevKit-mingw64-64- 4.7.2

For use with Ruby 2.0 and above (x64 - 64bits only) DevKit-mingw64-64-4.7.2

遵循说明此处.

或简短说明:

解压缩拉链

Unzip the zip

打开命令行并转到解压缩的文件夹

open command-line and go to unzipped folder

ruby​​ dk.rb初始化

ruby dk.rb init

ruby​​ dk.rb安装

ruby dk.rb install

gem install rdiscount --platform = ruby​​

gem install rdiscount --platform=ruby

这篇关于gem install json -v 1.7.3给出了“请更新您的PATH以包括构建工具"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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