2

我正在尝试在我的 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-console,我会收到一个新错误:

 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​​ 文件夹。

我的同学们搞定了,所以在这些错误上花了这么多小时后,我也想知道这些错误发生的原因以及如何解决它们?

4

0 回答 0