sudo: port: command not found 报错解决方案
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