创建rails新应用项目时出错

时间:2012-01-17 12:52:10

标签: ruby-on-rails

无法克服问题。每次我在Windows上生成新的rails项目都会得到按摩:

Installing json (1.6.5) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

   C:/Ruby193/bin/ruby.exe extconf.rb
C:/Ruby193/bin/ruby.exe: No such file or directory -- extconf.rb (LoadError)

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.5 
for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.5/ext/json/ext/parser/gem_make.out
An error occured while installing json (1.6.5), and Bundler cannot continue.
Make sure that `gem install json -v '1.6.5'` succeeds before bundling.

我已经尝试过安装json但不缺......我已经设法安装了json_pure。但仍然得到这个错误。 'ruby dk.rb init'也没有用过

1 个答案:

答案 0 :(得分:3)

要在Windows上构建原生扩展,您需要安装DevKit。它为您提供了类Unix环境和编译器。