Skip to content

Doesn't build with ruby 1.9.3-p194 #12

Closed
cap10morgan opened this Issue Apr 20, 2012 · 29 comments
@cap10morgan

When I try to install debugger under Ruby 1.9.3-p194, I get the following errors:

Installing debugger-linecache (1.0.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/wmorgan/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed


No source for ruby-1.9.3-p194 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
--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/wmorgan/.rvm/rubies/ruby-1.9.3-p194/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

Gem files will remain installed in /Users/wmorgan/.rvm/gems/ruby-1.9.3-p194@turbovote/gems/debugger-linecache-1.0.1 for inspection.
Results logged to /Users/wmorgan/.rvm/gems/ruby-1.9.3-p194@turbovote/gems/debugger-linecache-1.0.1/ext/trace_nums/gem_make.out
An error occured while installing debugger-linecache (1.0.1), and Bundler cannot continue.
Make sure that gem install debugger-linecache -v '1.0.1' succeeds before bundling.

@cldwalker
Owner

This should be fixed with the 1.1.2 release of debugger-ruby_core_source I did this morning. Please use the latest debugger-linecache as well.

@cap10morgan

Yep, that fixed it. Thanks.

@three-letter

I has the same error, use debugger-ruby_core_source1.1.2 and debugger-linecache1.1.1 also can't fix it..Can you tell me how to fix it. Thanks


Using debugger-ruby_core_source (1.1.2) 
Installing debugger-linecache (1.1.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/halsey/.rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb 
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p149 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:
@cldwalker
Owner

@Three-letter See my last comment on #14. Since your running on head (1.9.3-p149 is not an official release), you'll need to specify your headers explicitly. I can update the readme if this is confusing.

@jrochkind

I am still having trouble with the 1.1.2 release, with rvm-installed 1.9.3-p194.

I could install 'debugger' no problem on rvm-installed 1.9.3-p0, the last time I tried it. But with rvm installed 1.9.3-p194, just now, with debugger 1.1.2:

[rochkind@xs001 test-http-clients]$ gem install debugger -v 1.1.2
        Building native extensions.  This could take a while...
        ERROR:  Error installing debugger:
        ERROR: Failed to build gem native extension.

        /home/rochkind/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p194 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
        --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=/home/rochkind/.rvm/rubies/ruby-1.9.3-p194/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


Gem files will remain installed in /home/rochkind/.rvm/gems/ruby-1.9.3-p194/gems/debugger-linecache-1.1.1 for inspection.
Results logged to /home/rochkind/.rvm/gems/ruby-1.9.3-p194/gems/debugger-linecache-1.1.1/ext/trace_nums/gem_make.out
[rochkind@xs001 test-http-clients]$
@cldwalker
Owner

@jrochkind You need to update all debugger dependencies. Are you on debugger-ruby_core_source 1.1.2?

@jrochkind

If I gem install debugger -v 1.1.2, shouldn't that update all dependencies, so long as debugger insists on debugger-ruby_core_source 1.1.2?

But okay, let's try manually, gem install debugger-ruby_core_source -v 1.1.2, is that what you're suggesting?

Okay, that installed fine, now gem install debugger....

woo, that installed fine! Now let's actually test it out....

Seems to be working on an ultra simple test case. AND, where worked, at least in an ultra-simple test case, where it never worked for me before (#1). HOORAY. Thanks y'all.

I think a lot of people are going to get caught on this installation gotcha, you might want to advertise that you need to manually install debugger-ruby_core_source -v 1.1.2 to update. I'm used to gems insisting on installing their own dependencies automatically, not making you do it by hand. I think maybe you guys should have updated the debugger 1.1.2 dependency from debugger-ruby_core_source, "~> 1.1" to debugger-ruby_core_source, ">= 1.1.2", "< 2.0"

@cldwalker
Owner

@jrochkind Confirmed and fixed with 1.1.3

@jraeford
jraeford commented May 5, 2012

Thanks jrochkind! Finally, a solution after 4 weeks searching for a solution to my debugging nightmare. With the above comment I was finally able to get the debugger to work after trying first under Windows 7, buying a Macbook Air, and trying again for the past week. I'm new to Rails and think it has great potential, but I am a little disappointed at how hard it was to get basic debugging to work.

@XiaoHuang

some how im still getting this error. Im using ruby1.9.3 p194 and trying to install debugger 1.1.3 in my bundle. Somehow i got the same error:


Installing debugger-linecache (1.1.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
*** 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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb:2:in `require': no such file to load -- debugger/ruby_core_source (LoadError)
from extconf.rb:2

Gem files will remain installed in /Users/xiaohuang/.bundler/tmp/24957/gems/debugger-linecache-1.1.2 for inspection.
Results logged to /Users/xiaohuang/.bundler/tmp/24957/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out
An error occured while installing debugger-linecache (1.1.2), and Bundler cannot continue.
Make sure that gem install debugger-linecache -v '1.1.2' succeeds before bundling.


i run gem install debugger-linecache -v '1.1.2' and it succeeds but the bundling just keep failing. any solutions? Thanks a lot!!

@pawel2105

@cldwalker also getting the build error. You mentioned something about 1.1.3? Can't find that version on github.

@bronson
bronson commented Nov 9, 2012

I'm using 1.9.3-p286. After getting this error, I manually ran gem install debugger-ruby_core_source -v 1.1.4 then gem install debugger-linecache worked great.

Not sure why this wasn't done automatically via dependencies.

@raldred
raldred commented Nov 11, 2012

Sorry but it's not working for me on 1.9.3-p327

ERROR:  Error installing debugger-linecache:
    ERROR: Failed to build gem native extension.

        /Users/rob/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p327 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
@bmuscolino

Yep me neither.... Same error as above...

@bmuscolino

@raldred

gem install ruby-debug19
gem install debugger-linecache -v '1.1.2'

This did the trick for me!

@kalys
kalys commented Nov 13, 2012

+1 for ruby-1.9.3-p327. Log here.

@LBRapid
LBRapid commented Nov 13, 2012

@bmuscolino +1 for ruby-1.9.3-p327 here! Thanks

@LeonFedotov

@bmuscolino Thanks that did the trick!

@harrison

@bmuscolino :+1: on ruby-1.9.3-p327

@gingerlime

getting the same problem with ruby-1.9.3-p362 (latest stable)

@jjbohn
jjbohn commented Jan 3, 2013

Same problem here as well with ruby-1.9.3-p362

gem install ruby-debug19 seems to have done the trick.

@javi-villa

@bmuscolino Thanks!!!

@celeduc
celeduc commented May 16, 2013

Same problem now with ruby 1.9.3-p429

@markquezada

For future reference: I checked the debugger-ruby_core_source source code to see if the necessary ruby version is listed. In my case, 1.9.3-p429. It was, so I installed the latest version of the gem:

gem install debugger-ruby_core_source -v 1.2.2

Then bundle install worked normally.

@rubencaro

I just did bundle update debugger-ruby_core_source. It updated to 1.2.2, then bundle install went smooth.

@naudo
naudo commented Jun 6, 2013

Thanks @mirthlab, That solved the problem for me.

@gingerlime

Thanks @mirthlab - worked for me too with ruby2.0p195

@perfectfoolish

I also this error now

my environment

lifl-macbook-air:union cow$ rvm list

rvm rubies

   ruby-1.9.3-p545 [ x86_64 ]
=* ruby-2.0.0-p451 [ x86_64 ]
   ruby-2.1.1 [ x86_64 ]

# => - current
# =* - current && default
#  * - default
lifl-macbook-air:union cow$ which ruby
/Users/cow/.rvm/rubies/ruby-2.0.0-p451/bin/ruby
lifl-macbook-air:union cow$ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin13.1.0]

Error output

Installing debugger-ruby_core_source (1.2.3)

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/cow/.rvm/rubies/ruby-2.0.0-p451/bin/ruby extconf.rb
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-2.0.0-p451 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
    --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/cow/.rvm/rubies/ruby-2.0.0-p451/bin/ruby
    --with-ruby-dir
    --without-ruby-dir
    --with-ruby-include=${ruby-dir}/include
    --with-ruby-lib
    --without-ruby-lib=${ruby-dir}/

extconf failed, exit code 1

Gem files will remain installed in /Users/cow/.rvm/gems/ruby-2.0.0-p451@union/gems/debugger-1.6.0 for inspection.
Results logged to /Users/cow/.rvm/gems/ruby-2.0.0-p451@union/extensions/x86_64-darwin-13/2.0.0/debugger-1.6.0/gem_make.out
An error occurred while installing debugger (1.6.0), and Bundler cannot continue.

what should i do ? help me

@mmathias
mmathias commented Apr 3, 2014

I am having the same problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.