質問

I just upgraded my RVM Ruby installation to version 2.1.0 and tried to bundle install when I got the following error:

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?

役に立ちましたか?

解決

Looks like version 1.6.5 adds support for Ruby 2.1.0. - Works as expected.

Update: Since Ruby 2.1.1 has been released version 1.6.8 of Debugger should be used.

他のヒント

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+

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.

For those using Ruby 2.1.2 and running into this error while building native gem extension:

No such file or directory @ rb_file_s_stat - ./212/ruby_debug.h (Errno::ENOENT)

The conclusion is to use byebug (https://github.com/cldwalker/debugger/issues/131)

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.

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top