我对 xcode-select -switch 使用什么设置? [英] What do setting do I use for xcode-select -switch?

查看:90
本文介绍了我对 xcode-select -switch 使用什么设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过以下方式在 macos 山狮上安装八度音程:

I'm trying to install octave on macos mountain lion via the following:

sudo port install octave

然而,这个命令的结果总是如下:

However, the result of this command is always the following:

Error: 
Error: No valid Xcode installation is properly selected.
Error: Please use xcode-select to select an Xcode installation:
Error:     sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4
Error: 

我已经尝试了建议的 sudo xcode-select -switch 命令无济于事.总是出现同样的错误.任何想法如何解决这个问题?

I've tried the suggested sudo xcode-select -switch command to no avail. The same error always occurs. Any ideas how to resolve this problem?

推荐答案

你安装了 xcode 还是只安装了命令行工具?

Did you install xcode or just the command line tools?

我只安装了命令行工具,并能够通过使用以下命令来欺骗一些 GEMS:

I installed just the command line tools and was able to trick some GEMS by using the following command:

sudo xcode-select -switch /usr/bin

我基本上将它们指向了我的 GCC 所在的 bin 文件夹.

I basically pointed them to the bin folder where my GCC lives.

这篇关于我对 xcode-select -switch 使用什么设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆