Ruby on rails 错误:安装rails错误:无法生成gem本机扩展
我在尝试安装Rails时遇到以下错误:Ruby on rails 错误:安装rails错误:无法生成gem本机扩展,ruby-on-rails,ruby,Ruby On Rails,Ruby,我在尝试安装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:/
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
我怎样才能解决这个问题?顺便说一句,我在windows上。您收到的错误消息清楚地说明: 请更新路径以包含构建工具或下载DevKit 从“”开始,然后按照说明进行操作 在“
因此,我建议您下载DevKit并按照说明进行操作。请粘贴完整的堆栈跟踪,然后更新ruby的
PATH
环境变量以查找二进制文件。。