MacPorts安装方法再次不在详述,网上一大堆。但是在安装时可能会卡住,解决方法就是安装时断网安装,很快安装完成,安装完成后,更新:sudo port -v selfupdate
执行命令 sudo port -v selfupdate,如果失败or出现超时。解决方法可见:
http://trac.macports.org/wiki/howto/PortTreeTarball
如果Error: Couldn't sync the ports tree: Synchronization of 1 source(s) failed,解决方案可见:
http://stackoverflow.com/questions/19622337/cant-update-macports-with-mac-os-x-mavericks
http://blog.jekhy.com/2013/11/444
另外我果断换成Homebrew了。
http://brew.sh/index_zh-cn.html