Comments (8)
I'm also getting this today, on OS X using rbenv. I get the same error if I try the 0.4.23 beta instead.
$ gem install ruby-debug-ide
Fetching: ruby-debug-ide-0.4.22.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
/usr/local/opt/rbenv/versions/2.1.3/bin/ruby mkrf_conf.rb
Installing base gem
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Failed to build gem native extension.
/usr/local/opt/rbenv/versions/2.1.3/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-2.1.3-p242 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/opt/rbenv/versions/2.1.3/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
extconf failed, exit code 1
Gem files will remain installed in /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/debase-0.0.9 for inspection.
Results logged to /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/debase-0.0.9/gem_make.out
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:38:in `block in build'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/tempfile.rb:324:in `open'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:17:in `build'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `chdir'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `block in build_extension'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `synchronize'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `build_extension'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in `each'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in `build_extensions'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/installer.rb:677:in `build_extensions'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/installer.rb:232:in `install'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/request_set.rb:142:in `block in install'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/request_set.rb:126:in `each'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/request_set.rb:126:in `install'
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/dependency_installer.rb:389:in `install'
mkrf_conf.rb:34:in `rescue in <main>'
mkrf_conf.rb:27:in `<main>'
rake failed, exit code 1
Gem files will remain installed in /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.4.22 for inspection.
Results logged to /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/ruby-debug-ide-0.4.22/gem_make.out
from ruby-debug-ide.
same error for me too
from ruby-debug-ide.
idem for 2.1.3
...No source for ruby-2.1.3-p242 provided with debugger-ruby_core_source gem.
from ruby-debug-ide.
Hey guys - I found out how to get this working on all versions of Ruby. I was using ruby-2.0.0-p576, and after some research found out that the debugger-ruby_core_source dependency only supports specific patchlevels of ruby.
If you want to compile ruby-debug-ide or debase on your machine, you have 2 options:
- Use a Ruby version whose patchlevel is supported by debugger-ruby_core_source. That list can be found here: https://github.com/cldwalker/debugger-ruby_core_source/tree/master/lib/debugger/ruby_core_source. When you use a Ruby patchlevel that they support, the gem compilation will be "automatic" for you. and you shouldn't have to do anything further. The ruby-debug-ide gem will find the right files from the debugger-ruby_core_source dependency based on your ruby version & patchlevel.
- If you are using a patchlevel that is not supported by debugger-ruby_core_source (i.e., isn't on that list I linked to), you must explicitly tell Gem or Bundler where the files needed for compilation are located. That can be done in the following 2 ways:
- Using rubygems
gem install ruby-debug-ide -- --with-ruby-include=$rvm_path/src/$rvm_ruby_string
- Before using bundler
bundle config build.ruby-debug-ide --with-ruby-include=/usr/local/rvm/src/ruby-2.0.0-p576/
- Using rubygems
Hopefully this helps someone!
Also, there is a debase-ruby_core_source library that supports only Ruby 2 or better. Through my research, I discovered that the debase gem has been setup to use it over debugger-ruby_core_source. The next released gem of debase will only support the rubies that debase-ruby_core_source supports as a result. To get the 'automatic' compilation, you will have to use a patchlevel that it supports. That list of supported rubies can be found here: https://github.com/os97673/debase-ruby_core_source/tree/master/lib/debase/ruby_core_source
Good luck debugging friends =)
from ruby-debug-ide.
with debase 0.1.0 the problem will be fixed, but for every new ruby version we will have same problem again and again (because debase needs ruby sources). We will do our best to update debase-ruby_core_source as fast as possible but "--with-ruby-include" is should work always.
from ruby-debug-ide.
Thanks for the info, I haven't had time to try @pgibler's suggestion yet, but I'm planning on trying it. When is the debase 0.1.0 release planned?
from ruby-debug-ide.
we will test it with RubyMine and I think it will be released in about a week.
from ruby-debug-ide.
I know its been a long time, but i have same problems on windows 7 x64, does anyone knows how to resolve that?
$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
$ gem install ruby-debug-ide
Building native extensions. This could take a while...
System cannot find path specified
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby231-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/ext
C:/Ruby231-x64/bin/ruby.exe mkrf_conf.rb
'Ёбв?┐? -? г¤ ?вбп - cвЁ гЄ § --лc Їгвм.
'Ёбв?┐? -? г¤ ?вбп - cвЁ гЄ § --лc Їгвм.
Installing base gem
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Failed to build gem native extension.
current directory: C:/Ruby231-x64/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9/ext
C:/Ruby231-x64/bin/ruby.exe -r ./siteconf20170120-10104-1f4a8us.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/Ruby231-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/debase-0.2.2.beta9/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby231-x64/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9 for inspection.
Results logged to C:/Ruby231-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/debase-0.2.2.beta9/gem_make.out
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:92:in `run'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:48:in `block in build'
C:/Ruby231-x64/lib/ruby/2.3.0/tempfile.rb:295:in `open'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:31:in `build'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:163:in `chdir'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:163:in `block in build_extension'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:162:in `synchronize'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:162:in `build_extension'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:198:in `each'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:198:in `build_extensions'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/installer.rb:752:in `build_extensions'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/installer.rb:304:in `install'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/resolver/specification.rb:97:in `install'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:166:in `block in install'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:156:in `each'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:156:in `install'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/dependency_installer.rb:405:in `install'
mkrf_conf.rb:35:in `rescue in <main>'
mkrf_conf.rb:28:in `<main>'
rake failed, exit code 1
Gem files will remain installed in C:/Ruby231-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0 for inspection.
Results logged to C:/Ruby231-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/ruby-debug-ide-0.6.0/gem_make.out
$ gem install debase-ruby_core_source
Successfully installed debase-ruby_core_source-0.9.6
$ gem install debase -- --with-ruby-include=C:\Ruby231-x64\lib\ruby\gems\2.3.0\gems\debase-ruby_core_source-0.9.6\lib\debase\ruby_core_source\ruby-2.3.1-p112
Building native extensions with: '--with-ruby-include=C:\Ruby231-x64\lib\ruby\gems\2.3.0\gems\debase-ruby_core_source-0.9.6\lib\debase\ruby_core_source\ruby-2.3.1-p112ruby -v'
This could take a while...
System cannot find path specified
ERROR: Error installing debase:
ERROR: Failed to build gem native extension.
$ gem install debase --pre
Building native extensions. This could take a while...
System cannot find path specified
ERROR: Error installing debase:
ERROR: Failed to build gem native extension.
from ruby-debug-ide.
Related Issues (20)
- Debugger fails on apple m1 HOT 2
- Ruby Remote Debug Can Cause Arbitrary Remote Code Execution
- "daemon not healthy" on fresh install
- Undefined method 'index' for nil:NilClass @ /usr/local/bundle/ruby/2.6.0/gems/debase-0.2.4.1/lib/debase/context.rb:35:in `at_line' HOT 2
- Segmentation fault in Ruby 3.1.0 / RubyMine debugger HOT 6
- Nix incompatibility
- Can't debug Rails server old version 3.2.22.5, VSCode 1.64.2
- Uncaught exception - rdebug-ide fails to initialize superclass
- ruby 3,symbol not found in flat namespace '_RHASH_EMPTY_P'
- Support the "logpoint" breakpoint variant
- Question: How to use ruby-debug-ide with unicorn? How to use --attach-mode?
- --skip-wait-for-start makes certain files not to stop more than once HOT 1
- When started without breakpoints, only pauses code execution once
- How to start the debugger from Ruby? (Also: How to set a breakpoint in HAML?) HOT 2
- rdebug-ide is getting stuck when executing `notify_dispatcher_if_needed`
- Migrate tests to GHA
- irb 1.6.4
- Issue with bundle install with Rails 7.0 & Ruby 3.2 on Docker MacOS M1 HOT 2
- Debugger hits all breakpoints once then stops HOT 1
- Incompatibility with ruby 3.3.0 on Sonoma? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-debug-ide.