无法克服问题。每次我在 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”也不起作用
最佳答案
要在 Windows 上构建 native 扩展,您需要安装 DevKit 。它为您提供了类似 Unix 的环境和编译器。
关于ruby-on-rails - 创建 Rails 新应用程序项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8894922/