0

我正在运行 Windows7,并且在安装 json gem 时遇到了很大的困难。我得到的错误还没有在任何地方得到解决。我已经通过 RailsInstaller 安装了 DevKit,当我运行 gem install json 时,我收到以下错误:

C:\Users\Gavin>gem install json
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing json:
        ERROR: Failed to build gem native extension.

        C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile

make
Makefile:161: warning: overriding commands for target `install-so'
Makefile:160: warning: ignoring old commands for target `install-so'
Makefile:162: *** missing separator.  Stop.


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/bin;/gems/json-1.7.5 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/bin;/gems/json-1.7.5/ext/json/ext/generator/gem_make.out

有人知道这里可能发生什么吗?

4

1 回答 1

0

我想你的 devkit 文件夹在路径中?否则,请改用“gem install json_pure”试试。请参阅这篇解释为什么http://ruby.about.com/od/tasks/a/The-Json-Gem.htm的文章

于 2012-09-29T19:52:41.890 回答