今天在mac系统上安装graphviz时出现下面问题
执行命令brew install graphviz, 出现下面错误:
Error: You must
brew link libpngbefore graphviz can be installed
跟着上面错误提示, 又做了如下操作:
macbook-stonedeMacBook-Pro:design stone$
brew link libpng
Linking /usr/local/Cellar/libpng/1.6.21...
Error: Could not symlink share/man/man5/png.5
/usr/local/share/man/man5 is not writable.
出现上述问是由于目录/usr/local/share/man/man5没有写权限,
只要为其添加写权限就ok了, 解决方法如下:
chmod -R +w /usr/local/share/man/man5
(这是个目录, 所以需要迭代为它里面的文件添加权限, 因此需要-R选项)
或者为了防止还需要其他权限又发生错误, 直接添加读/写/执行的权限:
chmod -R 777 /usr/local/share/man/man5
添加权限后, 再先后执行命令brew link libpng和brew install graphviz就会成功了.
更多关于graphviz信息, 请移步graphviz官网
由于在Android Studio上安装的PlantUML integration插件无法正常工作, 错误提示说需要graphviz的支持, 因此有了上面的历程~~
要学习PlantUML的可以移步PlantUML官网: http://plantuml.com/