安装Ruby Debug IDE Gem [英] Installing Ruby Debug IDE Gem
问题描述
我正在尝试安装ruby-debug-base,但似乎有一个问题找到我的Xcode 4.5.2命令行工具的路径?
看起来像错误是由我的命令行工具在这里安装引起的:
/ usr / bin / xcodebuild
not here:
/ Developer / usr / bin / xcodebuild
有没有人遇到这个路径问题?我该如何解决它?我使用Xcode进行iOS开发并且工作正常。
谢谢!
admin $ sudo gem install ruby-debug-base
构建本机扩展。这可能需要一段时间...
错误:安装ruby-debug-base错误:
错误:无法构建gem本机扩展。
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
创建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:没有这样的文件或目录
/ Developer / usr / bin / xcodebuild失败并显示32512 - 未知错误:32512
make:*** [trace_nums .o]错误69
Gem文件将保留安装在/Library/Ruby/Gems/1.8/gems/linecache-0.46中进行检查。
结果记录到/Library/Ruby/Gems/1.8/gems/linecache-0.46/ext/gem_make.out
我通过转到位于
Xcode>首选项>下载中的位置
到那里后,我注意到命令行工具下拉框没有选择Xcode版本,下拉框旁边有一个小警报图标。
点击下拉框后,我选择了作为下拉选项提供的唯一版本(4.5.2)。
然后,我不得不从命令行接受Xcode最终用户协议,然后一切都很顺利。
$ b sudo xcodebuild -license
I am trying to install ruby-debug-base but there seems to be an issue finding a path to my Xcode 4.5.2 commandline tools?
Looks like the error is being caused by my commandline tools being installed here: /usr/bin/xcodebuild
not here: /Developer/usr/bin/xcodebuild
Has anyone run into this pathing issue? How can I resolve it? I do use Xcode for iOS development and it works fine.
Thanks!
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
I solved this by going to the "Locations" tab found in
Xcode > Preferences > Downloads
Once there, I noticed that the dropdown box for "Command Line Tools" did not have a version of Xcode selected and there was a small alert icon next to the dropdown box.
After clicking on the dropdown box, I selected the sole version (4.5.2) that was given as an option in the dropdown.
I then had to accept the Xcode end-user agreement from the command line and then all was good.
sudo xcodebuild -license
这篇关于安装Ruby Debug IDE Gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!