推荐 PHPBrew
sudo ln -s /Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include /usr/include
MAMP你值得拥有
mac 一般自带php的环境,是不是冲突了
xcode-select --install
正确的结果应该是
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
否则, 你就按提示安装.
安装之后就可以了.