尝试安装Rails时出现此错误:
Z:\AlexL\My Documents\rails>gem install rails
ERROR: Error installing rails:
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'
Z:\AlexL\My Documents\rails>gem install rails -include-dependencies
ERROR: Error installing rails:
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'
ERROR: While executing gem ... (URI::InvalidURIError)
bad URI(is not URI?): ?gems=ûinclude-dependencies
Z:\AlexL\My Documents\rails>rails
'rails' is not recognized as an internal or external command,
operable program or batch file.
我的Ruby版本是:
ruby 1.9.3p484
我该如何解决这个问题?我在旁边的窗户上。
答案 0 :(得分:1)
您收到的错误消息明确指出:
请更新您的PATH以包含构建工具或下载DevKit 来自' http://rubyinstaller.org/downloads'并按照说明操作 在' http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
所以,我的建议是你下载DevKit并按照说明进行操作。