Have you tried to install OSX-GCC yet? Best, David Allison Chief Technology Officer, Nulu, Inc. www.nululanguages.com
On Sep 3, 2012, at 10:39 PM, Chris McCann <[email protected]> wrote: > Has anyone had luck installing the debugger gem in Mountain Lion? I'm > shaving a field full of yaks trying to get the gem installed. > > Here's what I get when I try to install it: > > gem install debugger -- > --with-ruby-include=/Users/chris/.rvm/src/ruby-1.9.2-p320/ > Building native extensions. This could take a while... > ERROR: Error installing debugger: > ERROR: Failed to build gem native extension. > > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb > --with-ruby-include=/Users/chris/.rvm/src/ruby-1.9.2-p320/ > checking for vm_core.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/chris/.rvm/rubies/ruby-1.9.2-p320/bin/ruby > --with-ruby-dir > --without-ruby-dir > --with-ruby-include=${ruby-dir}/include > --with-ruby-lib > --without-ruby-lib=${ruby-dir}/lib > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:368:in > `try_do': The complier failed to generate an executable file. (RuntimeError) > You have to install development tools first. > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:452:in > `try_cpp' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:834:in `block > in have_header' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:693:in `block > in checking_for' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:280:in `block > (2 levels) in postpone' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:254:in `open' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:280:in `block > in postpone' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:254:in `open' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:276:in > `postpone' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:692:in > `checking_for' > from > /Users/chris/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:833:in > `have_header' > from extconf.rb:9:in `block in <main>' > from > /Users/chris/.rvm/gems/ruby-1.9.2-p320/gems/debugger-ruby_core_source-1.1.3/lib/debugger/ruby_core_source.rb:17:in > `call' > from > /Users/chris/.rvm/gems/ruby-1.9.2-p320/gems/debugger-ruby_core_source-1.1.3/lib/debugger/ruby_core_source.rb:17:in > `create_makefile_with_core' > from extconf.rb:13:in `<main>' > > > Gem files will remain installed in > /Users/chris/.rvm/gems/ruby-1.9.2-p320/gems/debugger-linecache-1.1.2 for > inspection. > Results logged to > /Users/chris/.rvm/gems/ruby-1.9.2-p320/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out > > A few things I discovered along the way: > > - XCode doesn't automatically install gcc on Mtn Lion. Fixed that. > - I've used multiple approaches for the --with-ruby-include option based on > Stack Overflow posts, blogs and the dubugger gem's github wiki. > - I couldn't get ruby-debug19 to install either, with similar results, which > is why I moved on to debugger. > - For the life of me I can't figure out where it writes the mkmf.log file -- > anyone know? My google-fu is weak tonight. > > Thanks in advance. Really pulling my hair out on this one. > > Chris > > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
<<inline: nulu-RGB-100w.png>>
