brew install macvim不适用于"xcode-lite",即xcode的命令行工具?

Ash*_*win 5 xcode homebrew install xcodebuild

根据Kenneth Reitz的建议,我在我的MAC OS X 10.7.4上安装了"xcode-lite"(即用于xcode的命令行工具(CLT)).

但是,brew install macvim给我这个错误:

xcode-select: Error: No Xcode is selected. Use xcode-select -switch /Applications/Xcode.app to select /Applications/Xcode.app, or see the xcode-select manpage (man xcode-select) for further information.
Run Code Online (Sandbox Code Playgroud)

我没有xcodebuild/Applications.我也没有/Developer目录.我有/usr/bin/xcodebuild,但是

xcode-select -switch /usr/bin
brew install macvim
Run Code Online (Sandbox Code Playgroud)

给我这个错误:

Error: Can't run /usr/bin/usr/bin/xcodebuild (no such file).
Run Code Online (Sandbox Code Playgroud)

此外,试图迫使它寻求xcodebuild/usr/bin使酿造挂下去.所以我被困住了.

我在一些地方读到,用于xcode的CLT不够好,我需要下载完整版的xcode(1.5GB).其他一些人声称brew确实可以使用CLT for xcode,但几个小时的尝试brew install macvim(连同大量的谷歌搜索)并没有产生任何结果.我必须遗漏关于brew和CLT for xcode的基本信息.我真的需要完整的xcode,还是我的CLT for xcode没有安装在正确的目录中?

ps:我想酿造而不是安装二进制目录的原因是因为我想用python开发功能构建它.如果有一个更简单的方法来使用python-dev集成获得macvim,我很高兴能够使用它.

Ash*_*win 2

我下载了完整版的xcode(几乎2GB),然后brew install macvim 工作了。不幸的是,brew 不能与 xcode 的 CLT 一起使用。

随后我遇到了一些小问题。一个问题是 macvim 正在选择 python 的系统版本(2.7.1),而我需要它来使用我下载的版本(2.7.3)。我必须brew删除macvim,brew编辑macvim,使macvim引用正确的python版本并使用brew install python重建。

我必须说这是一个困难的练习!但现在我有 macvim 可以很好地进行 python 开发