Open cndaqiang opened 4 years ago
根据https://trac.macports.org/wiki/Mirrors
选择镜像
如
rsync://pek.cn.rsync.macports.org/macports/release/tarballs/ports.tar
填入
sudo vi /opt/local/etc/macports/sources.conf
或者tuna
#rsync://pek.cn.rsync.macports.org/macports/release/tarballs/ports.tar [default]
#rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
https://mirrors.tuna.tsinghua.edu.cn/macports/release/tarballs/ports.tar [default]
更新源
sudo port -v selfupdate
安装之后打开新的terminal