Mac OS 安装MacPorts

wget http://distfiles.macports.org/MacPorts/MacPorts-2.3.3.tar.gz
tar -xzvf MacPorts-2.3.3.tar.gz
cd MacPorts-2.3.3
ls
./configure
make
make install

然后再.bash_profile中PATH增加
/opt/local/bin
/opt/local/sbin