建议使用brew安装:
sudo chown -R $(whoami):admin /usr/local
若没有安装brew,参考LINK :mac安装homebrew
若出现:
Warning: wget-1.17.1 already installed, it's just not linked
说明还没有链接,此时需要:
brew link wget
若出现:
You are using OS X 10.12.We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
是因为os x系统升级后,brew与系统不兼容,此时根据官方给出的解决办法,在命令行输入:
sudo chown -R $(whoami):admin /usr/local
参考:http://www.neatstudio.com/show-2649-1.shtml