Невозможно загрузить ruby-debug на Mac OS X 10.7.3 Lion.
Не уверен, почему путь указан неверно.
Версия 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
$
При поиске пути ruby.h в системе Lion пути другие.
./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