title: Cannot load ruby-debug in ruby 1.8.7 on a Mac OS X 10.7.3 Lion
body: <p>Cannot load ruby-debug on a Mac OS X 10.7.3 Lion.</p>
  
  <p>Not sure why the path is incorrect.  </p>
  
  <p>Ruby version is 1.8.7 which came standard with Lion. </p>
  
  <p>Installed Xcode</p>
  
  <pre><code>Developer Information:
  
    Version:  No version information available
    Location: /Applications/Xcode.app
    Applications:
    Xcode:    4.3 (1175)
    Instruments:  4.3 (4321)
    SDKs:
    Mac OS X:
    10.6: (10K549)
    10.7: (11D50a)
    iPhone OS:
    5.0:  (9A334)
    iPhone Simulator:
    5.0:  (9A334)
  
  
  $ sudo gem install ruby-debug -v 0.10.4
  Password:
  Building native extensions.  This could take a while...
  ERROR:  Error installing ruby-debug:
  ERROR: Failed to build gem native extension.
  
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
  mkmf.rb can't find header files for ruby at          /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
  
  
  Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/linecache-0.46 for     inspection.
  Results logged to /Library/Ruby/Gems/1.8/gems/linecache-0.46/ext/gem_make.out
  
  
  $ 
  </code></pre>
  
  <p>Looking for the ruby.h path on the Lion system, the path's are different.</p>
  
  <pre><code>./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/ruby.h
  ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0/ruby.h
  ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/ruby.h
  ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0/ruby.h
  </code></pre>
  
  <p>What is the best approach from this point?</p>
  
  <p>thanks,</p>
  
  <p>pb</p>