在Windows 7上安装Ruby on Rails时出错

Rip*_*sim 0 install ruby-on-rails windows-7

操作系统:Windows 7旗舰版32位(6.1,Build 7600)

安装Ruby:我已成功安装Ruby版本1.8.7安装Rails:我尝试通过在命令提示符下键入以下命令来安装Rails和所有依赖项:gem install rails --include-dependencies

但不幸的是,错误发生如下:

INFO: gem install -y现在是默认值,将被删除INFO:使用--ignore-dependencies只安装列出的gems错误:安装rails时出错:'json'本机gem需要安装构建工具.

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

修复它的步骤是什么?

Lui*_*ena 5

'json'本机gem需要安装构建工具.

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'
Run Code Online (Sandbox Code Playgroud)

似乎表明您的环境中缺少的内容:构建工具,也称为编译器工具链.

RubyInstaller提供了一个名为Development Kit(DevKit)的即用型软件包,似乎在上面的链接中有说明.

此外,Wiki页面包含下载和安装它的所有说明.

如果你想使用Rails的,而不是使用RubyInstaller,为什么不直接安装RailsInstaller它已经集成了的devkit并没有额外的安装步骤.

希望有所帮助.