我是 ruby on rails 的新手,我正在尝试让我的第一个项目使用 git 和 heroku。我正在关注 Michael Hartl 的教程。我最初试图
git push heroku master
但我没有 GemFile.lock,所以我一直在尝试捆绑安装和捆绑更新,但没有任何效果,因为我没有 json 本机 gem。
bundle update
这是返回此错误的命令,它不是我遗漏了我已经拥有的所有宝石的整个错误
Installing json (1.7.3) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
"C:/Program Files/ruby-1.9.3/bin/ruby.exe" extconf.rb
creating Makefile
make
Makefile:160: warning: overriding commands for target `C:/Program'
Makefile:153: warning: ignoring old commands for target `C:/Program'
C:/Program Files/ruby-1.9.3/bin/ruby -e "puts 'EXPORTS', 'Init_parser'" > parser-i386
mingw32.def
/bin/sh: C:/Program: No such file or directory
make: *** [parser-i386-mingw32.def] Error 127
Gem files will remain installed in C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/json-1.7.3 f
or inspection.
Results logged to C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/json-1.7.3/ext/json/ext/parser/gem_make.out
An error occured while installing json (1.7.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.3'` succeeds before bundling.
如果有人知道如何修复我的错误以便我可以进入下一个错误,或者我如何获得一个有效的 GemFile.lock,我将不胜感激。