Mac OS X10.7.3Lionでruby-debugをロードできません。
パスが正しくない理由がわかりません。
Rubyのバージョンは1.8.7で、Lionに標準で付属しています。
インストールされたXcode
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
$
Lionシステムでruby.hパスを探すと、パスが異なります。
./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
この時点からの最善のアプローチは何ですか?
ありがとう、
pb