hol*_*lms 5 macports osx-mountain-lion
我在 macports 中有这个警告:
Romans-iMac:~ holms$ sudo port -v install nginx +ssl
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/Xcode45-DP1.app/Contents/Developer # version 4.5
Error:
Run Code Online (Sandbox Code Playgroud)
尽管我已经使用了该命令,但警告并没有消失,无论如何编译都可以工作。
小智 8
看起来有两个问题正在发生。首先,这很愚蠢,您可能没有接受 XCode 许可协议(请参阅http://www.xensoft.com/?q=node/3)。
要解决此问题,请尝试:
sudo xcodebuild -license # Press 'q' then type 'agree' to accept the license agreement
Run Code Online (Sandbox Code Playgroud)
其次,安装的MacPorts版本可能还在通过查找XCode 4.4中重新排列的一些目录来验证XCode的安装。有一个补丁,看起来它将与 MacPorts 2.1.2 一起推出。或者现在,如果您使用 MacPortssvn存储库的主干分支使用您自己的 Macports 构建。(参见https://trac.macports.org/ticket/35150)。
| 归档时间: |
|
| 查看次数: |
5675 次 |
| 最近记录: |