# port search imagemagick
在网上查了下,试了下面的方法,成功。
The steps which solved for me were:
1. Install Xcode 4.3 from Mac App Store
2. Install Command Line Tools for Xcode
3. sudo /usr/bin/xcode-select -switch /Applications/Xcode.app
4. sudo ln -s `which clang` /Applications/Xcode.app/Contents/Developer/usr/bin/
Even so, this is clearly a workaround.
1. Install Xcode 4.3 from Mac App Store
2. Install Command Line Tools for Xcode
3. sudo /usr/bin/xcode-select -switch /Applications/Xcode.app
4. sudo ln -s `which clang` /Applications/Xcode.app/Contents/Developer/usr/bin/
Even so, this is clearly a workaround.
我的xcode是下载的dmg, 每次启动动态挂载, 所以目录是 /Volumes/Xcode.app/...
对于从appstore安装的用户来说 目标应该是/Application/Xcode.app/...
我只执行了 step3 就成功了。