mac 安装port和brew

安装homebrew


curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local

安装MacPort


https://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.8-MountainLion.pkg 

然后将/opt/local/bin和/opt/local/sbin添加到$PATH搜索路径中 
编辑/etc/profile文件中,加上 
export PATH=/opt/local/bin:$PATH 
export PATH=/opt/local/sbin:$PATH 

标签:OSX