我是Mac用户的新手。我可以看到有gcc
,git
等在“ /usr/bin
”文件夹中。但是当我想使用它们时,它会提示如下:
MacBook-Pro:~ nan$ git
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
MacBook-Pro:~ nan$ gcc
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
这是否意味着我必须安装xcode
才能使用gcc
或git
,非常感谢!
您真的需要gcc还是仅使用C / C ++编译器?
—
user151019 2014年
/usr/bin/git
调用xcode-select
会产生错误,因此/usr/bin/git
可能只是从安装的开发人员工具版本中选择的包装器。请参阅developer.apple.com/library/mac/documentation/Darwin/Reference/…的“