【发布时间】:2012-11-19 18:33:50
【问题描述】:
我正在尝试安装 ruby-debug-base,但找到 Xcode 4.5.2 命令行工具的路径似乎有问题?
看起来错误是由我在此处安装的命令行工具引起的: /usr/bin/xcodebuild
不在这里: /Developer/usr/bin/xcodebuild
有人遇到过这个路径问题吗?我该如何解决?我确实使用 Xcode 进行 iOS 开发,它运行良好。
谢谢!
admin$ sudo gem install ruby-debug-base
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-base:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
creating Makefile
make
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -c trace_nums.c
sh: /Developer/usr/bin/xcodebuild: No such file or directory
/Developer/usr/bin/xcodebuild fails with 32512 - Unknown error: 32512
make: *** [trace_nums.o] Error 69
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
【问题讨论】:
-
您是否尝试过(重新)安装命令行工具?
Xcode > Preferences > Downloads -
我看不到重新安装的选项。它只是将它们显示为已安装