cldwalker / debugger

port of ruby-debug that works on 1.9.2 and 1.9.3
BSD 2-Clause "Simplified" License
846 stars 80 forks source link

Can't build against ruby-1.9.3-p448 #87

Closed anthonygreen closed 11 years ago

anthonygreen commented 11 years ago

I'm unable to gem install debugger against ruby-1.9.3-p448 The issue also appears to effect RVM: http://www.whereisjoel.com/post/54208272670/protip-installing-ruby-debugger-with-rvm unfortunately their solution didn't work for rbenv

cldwalker commented 11 years ago

Thanks for reporting your issue! This is one of my 12 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.

markoa commented 11 years ago

To perhaps clarify, this happens with the latest debugger in Gemfile and Ruby 1.9.3-p448 installed via rbenv.

The output of bundle install looks like this:

Installing database_cleaner (0.7.2) 
Installing debugger-ruby_core_source (1.1.7) 
Installing debugger-linecache (1.1.2) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/runner/.rbenv/versions/1.9.3-p448/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-p448 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=/home/runner/.rbenv/versions/1.9.3-p448/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/runner/dfccd85e2c25a3fa2217479e798664231abb6be3/vendor/bundle/ruby/1.9.1/gems/debugger-linecache-1.1.2 for inspection.
Results logged to /home/runner/dfccd85e2c25a3fa2217479e798664231abb6be3/vendor/bundle/ruby/1.9.1/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out
An error occurred 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.
cldwalker commented 11 years ago

I just released 1.6.1 which will automatically pull in support for 1.9.3-p448

iwan commented 11 years ago

Now works. Thanks

eendeego commented 10 years ago

Not working for me on 1.9.3-p448 / rvm / Mavericks, neither for 1.6.1 nor 1.6.2.

I've got pretty much the same error message:

$ gem install debugger -v '1.6.2' -- --build-flags --with-ruby-include=$HOME/ruby-1.9.3-p448
Building native extensions with: '--build-flags --with-ruby-include=/Users/me/ruby-1.9.3-p448'
This could take a while...
ERROR:  Error installing debugger:
        ERROR: Failed to build gem native extension.

    /Users/me/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb --build-flags --with-ruby-include=/Users/me/ruby-1.9.3-p448
checking for rb_method_entry_t.called_id in method.h... *** 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/me/.rvm/rubies/ruby-1.9.3-p448/bin/ruby
        --with-ruby-dir
        --without-ruby-dir
        --with-ruby-include=${ruby-dir}/include
        --with-ruby-lib
        --without-ruby-lib=${ruby-dir}/lib
/Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:1002:in `block in have_struct_member'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
        from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:1001:in `have_struct_member'
        from extconf.rb:34:in `block in <main>'
        from /Users/me/.rvm/gems/ruby-1.9.3-p448@makethings/gems/debugger-ruby_core_source-1.2.3/lib/debugger/ruby_core_source.rb:21:in `call'
        from /Users/me/.rvm/gems/ruby-1.9.3-p448@makethings/gems/debugger-ruby_core_source-1.2.3/lib/debugger/ruby_core_source.rb:21:in `create_makefile_with_core'
        from extconf.rb:87:in `<main>'

Gem files will remain installed in /Users/me/.rvm/gems/ruby-1.9.3-p448@makethings/gems/debugger-1.6.2 for inspection.
Results logged to /Users/me/.rvm/gems/ruby-1.9.3-p448@makethings/gems/debugger-1.6.2/ext/ruby_debug/gem_make.out