我正在尝试在我的Windows 10x64上运行bundle install,并且我一直收到此错误:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/debug_inspector-0.0.2/ext/debug_inspector
C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20161109-14104-1y5ai00.rb extconf.rb
creating Makefile
current directory:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/debug_inspector-0.0.2/ext/debug_inspector
make "DESTDIR=" clean
current directory:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/debug_inspector-0.0.2/ext/debug_inspector
make "DESTDIR="
make failed, uncaught signal 11
Gem files will remain installed in
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/debug_inspector-0.0.2 for inspection.
Results logged to
C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/debug_inspector-0.0.2/gem_make.out
An error occurred while installing debug_inspector (0.0.2), and Bundler cannot
continue.
Make sure that `gem install debug_inspector -v '0.0.2'` succeeds before
bundling.
我正在使用Ruby版本2.3.1。我已经安装了正确版本的Ruby DevKit和rails版本'4.2.6'
如果我在Gemfile中注释掉web控制台,我会收到一个新错误:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/byebug-9.0.6/ext/byebug
C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20161109-9448-8vnaze.rb extconf.rb
creating Makefile
current directory:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/byebug-9.0.6/ext/byebug
make "DESTDIR=" clean
current directory:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/byebug-9.0.6/ext/byebug
make "DESTDIR="
make failed, uncaught signal 11
Gem files will remain installed in
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/byebug-9.0.6 for inspection.
Results logged to
C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/byebug-9.0.6/gem_make.out
An error occurred while installing byebug (9.0.6), and Bundler cannot
continue.
Make sure that `gem install byebug -v '9.0.6'` succeeds before bundling.
在评论'byebug'gem之后,捆绑安装工作正常。 我重新安装了ruby和devkit,似乎没有任何帮助。
我安装后出现问题,很快发现它对我不起作用,卸载了ruby 2.2.5然后重新安装了2.3.1版本。卸载ruby 2.2.5后,我还删除了相应的ruby文件夹。
我的同学得到了它的工作,所以花了这么多时间来解决这些错误我还想知道这些错误发生的原因,也许是如何解决它们?