我已经有这个问题了一段时间了。我试图在Rubymine中启动调试器并继续收到此错误。我已经尝试清除我的gemset并重新安装它但没有好处。
当我第一次运行调试时,我会收到安装ruby-debug-ide
gem的提示,并最终出现此错误。
Error running Local: lims-app: Failed to Install Gems. Following gems were not installed: /Applications/RubyMine.app/Contents/rb/gems/debase-0.2.2.beta6.gem: Error installing debase-0.2.2.beta6.gem: ERROR: Failed to build gem native extension. /Users/am029788/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20160229-17823-mgpbf3.rb extconf.rb checking for vm_core.h... no checking for vm_core.h... no checking for vm_core.h... yes creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling breakpoint.c compiling context.c compiling debase_internals.c In file included from /Users/am029788/.rvm/gems/ruby-2.2.1/gems/debase-ruby_core_source-0.8.4/lib/debase/ruby_core_source/ruby-2.2.1-p85/method.h:14, from /Users/am029788/.rvm/gems/ruby-2.2.1/gems/debase-ruby_core_source-0.8.4/lib/debase/ruby_core_source/ruby-2.2.1-p85/vm_core.h:24, from ./hacks.h:1, from debase_internals.c:2: /Users/am029788/.rvm/gems/ruby-2.2.1/gems/debase-ruby_core_source-0.8.4/lib/debase/ruby_core_source/ruby-2.2.1-p85/internal.h:246: error: expected ‘;’, ‘,’ or ‘)’ before ‘x’ make: *** [debase_internals.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/am029788/.rvm/gems/ruby-2.2.1/gems/debase-0.2.2.beta6 for inspection. Results logged to /Users/am029788/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/debase-0.2.2.beta6/gem_make.out
我发现错误Failed to build gem native extension
很多。这是什么意思?
当我尝试在此之后运行调试时,它会尝试连接并失败。
我的配置: - Rubymine 8.0.3 - ruby-2.2.1 - OSX 10.10.5
答案 0 :(得分:0)
我今天遇到了同样的问题,原因是C没有权限运行。所以尝试在终端中运行gcc,并同意它运行,然后再捆绑,你应该能够成功安装debase。
答案 1 :(得分:0)
我经常与此斗争。
结束在应用程序的gemfile中添加版本0.1.1的debase gem。