Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 错误:安装rails错误:无法生成gem本机扩展_Ruby On Rails_Ruby - Fatal编程技术网

Ruby on rails 错误:安装rails错误:无法生成gem本机扩展

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:/

我在尝试安装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


我怎样才能解决这个问题?顺便说一句,我在windows上。

您收到的错误消息清楚地说明:

请更新路径以包含构建工具或下载DevKit 从“”开始,然后按照说明进行操作 在“


因此,我建议您下载DevKit并按照说明进行操作。

请粘贴完整的堆栈跟踪,然后更新ruby的
PATH
环境变量以查找二进制文件。。