sudo: port: command not found 报错解决方案

2023-03-07,,

mac本安装graphviz的方法是:

sudo port install graphviz

执行报错

sudo: port: command not found

其实是未设置环境变量,执行下面的语句:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

即可解决

参考:

https://graphviz.org/download/#mac

https://blog.csdn.net/m0_52327965/article/details/115122118

sudo: port: command not found 报错解决方案的相关教程结束。

《sudo: port: command not found 报错解决方案.doc》

下载本文的Word格式文档,以方便收藏与打印。