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

Error while installing debugger #107

Closed msmosso closed 10 years ago

msmosso commented 10 years ago

I'm currently facing this error while trying to install debugger:

msmosso@rhythm:~/brimir-master$ sudo gem install debugger
Fetching: debugger-ruby_core_source-1.2.4.gem (100%)
Fetching: debugger-linecache-1.2.0.gem (100%)
Fetching: debugger-1.6.3.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing debugger:
        ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from extconf.rb:15:in `<main>'

Gem files will remain installed in /var/lib/gems/1.9.1/gems/debugger-1.6.3 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/debugger-1.6.3/ext/ruby_debug/gem_make.out
cldwalker commented 10 years ago

Thanks for reporting your issue! This is one of my 22 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.

cldwalker commented 10 years ago

mkmf is a standard ruby library. If your ruby can't find it then every C-based gem will not work. I suggest a ruby re-install using rbenv or rvm. If you're on mavericks #105 may help.