我在Windows上运行时遇到以下错误gem install json —platform=ruby
:
The system cannot find the path specified.
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
Run Code Online (Sandbox Code Playgroud)
首先,我不是Windows用户,所以这对我来说是一个勇敢的新世界.从工作中继承了一台笔记本电脑,其中有一系列疯狂的图书馆,我已经设法删除所有以前安装的ruby和Devkit,然后安装了以下内容: