I just upgraded my RVM Ruby installation to version 2.1.0 and tried to bundle install when I got the following error:
我刚刚将我的RVM Ruby安装升级到2.1.0版本,并尝试在遇到以下错误时捆绑安装:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Ruby version 2.1.0 is not supported.
*** extconf.rb failed ***
The error of course is self-explanatory, but I was wondering if there was a way to make the Debugger gem work with the latest release of Ruby?
这个错误当然是不言自明的,但是我想知道是否有一种方法可以让调试器gem与Ruby的最新版本一起工作?
19
Looks like version 1.6.5 adds support for Ruby 2.1.0. - Works as expected.
看起来1.6.5版本增加了对Ruby 2.1.0的支持。——按预期工作。
Update: Since Ruby 2.1.1 has been released version 1.6.8 of Debugger should be used.
更新:因为Ruby 2.1.1已经发布了版本1.6.8,所以应该使用调试器。
13
This was mentioned in one of the comments, but I wanted to call attention to it:
其中一篇评论提到了这一点,但我想提请大家注意:
byebug is the currently recommended debugger for Ruby 2.0+
byebug是Ruby 2.0+当前推荐的调试器
This issue has been documented here, and cldwalker, the author of debugger, notes that debugger will be scoped to Ruby 1.9.2 and 1.9.3.
这里已经记录了这个问题,调试器的作者cldwalker指出,调试器的作用域是Ruby 1.9.2和1.9.3。
5
For those using Ruby 2.1.2 and running into this error while building native gem extension:
对于使用Ruby 2.1.2并在构建本机gem扩展时遇到此错误的用户:
No such file or directory @ rb_file_s_stat - ./212/ruby_debug.h (Errno::ENOENT)
没有这样的文件或目录@ rb_file_s_stat - ./212/ruby_debug。h(Errno::ENOENT)
The conclusion is to use byebug (https://github.com/cldwalker/debugger/issues/131)
结论是使用byebug (https://github.com/cldwalker/debugger/issues/131)
0
The release 1.6.4 is expected to have limited 2.1.0 support (which I guess would mean it should at least compile and run). Here's the commit.
1.6.4版预计只有有限的2.1.0支持(我猜这意味着它至少应该编译并运行)。这是提交。
However, other users reported a compilation issue two days ago (#110). You may follow the discussion to see when the issue will be fixed. You can also post your compilation error and environment details in the ticket so that the maintainer will have more information available.
然而,其他用户两天前报告了一个编译问题(#110)。你可以跟着讨论看问题什么时候会解决。您还可以将您的编译错误和环境详细信息发布到罚单中,这样维护人员就可以获得更多的信息。
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2013/12/29/5bf440c91d5f0a1267437101539daadd.html。