Brew安装错误单独的Xcode在Sierra上是不够的

swe*_*ere 8 macos xcode homebrew

我正在尝试使用HomeBrew v1.3.8在运行xCode v9.1的Mac OSX Serra v10.12.6上安装软件包.

安装和错误是

TS-Mac-Pro > brew install dos2unix
Error: Xcode alone is not sufficient on Sierra.
Install the Command Line Tools:
  xcode-select --install 
Run Code Online (Sandbox Code Playgroud)

然后我运行命令

xcode-select --install 
Run Code Online (Sandbox Code Playgroud)

这表示命令行工具包不能从软件更新服务器获得.

我进入xCode,它表明安装了命令行工具.

TS-Mac-Pro > xcode-select -p
/Applications/Xcode.app/Contents/Developer 
Run Code Online (Sandbox Code Playgroud)

任何帮助将非常感激.

西奥

swe*_*ere 14

我去了Apple Developer网站并直接下载了命令行工具dmg.首先需要设置Apple帐户.

命令行工具可以在 - 下找到 -

https://developer.apple.com/download/more/

安装下载的dmg和volia - HomeBrew已备份并正在运行.