Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

gem install debugger -- --with-ruby-include=PATH_TO_HEADERS #14

Closed
tknazn opened this issue Apr 24, 2012 · 5 comments
Closed

gem install debugger -- --with-ruby-include=PATH_TO_HEADERS #14

tknazn opened this issue Apr 24, 2012 · 5 comments

Comments

@tknazn
Copy link

tknazn commented Apr 24, 2012

When I tried to install the debugger gem, I got this error. Im using ruby 1.9.3dev (2011-09-23 revision 33323) [x86_64-darwin11.3.0]

Building native extensions.  This could take a while...
ERROR:  Error installing debugger:
        ERROR: Failed to build gem native extension.

        /Users/trongducdong/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb --with-ruby-include=PATH_TO_HEADERS
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-rc1 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=/Users/trongducdong/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby
        --with-ruby-dir
        --without-ruby-dir
        --with-ruby-include=${ruby-dir}/include
        --with-ruby-lib
        --without-ruby-lib=${ruby-dir}/lib


Gem files will remain installed in /Users/trongducdong/.rvm/gems/ruby-1.9.3-rc1/gems/debugger-linecache-1.1.1 for inspection.
Results logged to /Users/trongducdong/.rvm/gems/ruby-1.9.3-rc1/gems/debugger-linecache-1.1.1/ext/trace_nums/gem_make.out
@ghost
Copy link

ghost commented Apr 24, 2012

I am getting the same issue on ruby 1.9.3p194 installed via rbenv/ruby-build.

@cldwalker
Copy link
Owner

@Hydrozen You shouldn't if you upgrade debugger-ruby_core_source to 1.1.2

@cldwalker
Copy link
Owner

@tknazn debugger isn't supporting automated installs of candidate ruby versions. I guess I should make that more explicit in the readme.I suggest upgrading to a stable ruby i.e. ruby-1.9.3p194 or installing with the path to your ruby headers as described in the error message i.e. gem install debugger -- --with-ruby-include=YOUR_PATH

@cldwalker
Copy link
Owner

I've made the support of only official ruby releases more clear in the readme. If you have more to discuss here, feel free to and I can reopen.

@narojigautam
Copy link

I got this issue with Ruby-2.0.0-p481, installed through RVM.
I solved it by running
gem install debugger-ruby_core_source # the dependency was not satisfied
followed by
gem install debugger -v '1.6.6' -- --with-ruby-include=~/.rvm/rubies/ruby-2.0.0-p481/include # pointed to the include dir manually from the default ruby version from RVM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants