背景:查看 https://github.com/iluwatar/java-design-patterns.git 开源项目的代码,了解程序逻辑的时候发现他对puml文件,安装完idea自带的插件后图片依旧渲染错误。提示如下错误:
Cannot find Graphviz . You should try 。。。
查找了下网友们说要安装 相关的软件。 Download | Graphviz
到这里理论上一键安装就可以了,在这里可能本地问题。报了一堆的错,未防止大家同样的踩坑,简单把这个过程中遇到的问题梳理下。
1 Error: An exception occurred within a child process:
ChecksumMismatchError: SHA256 mismatch
Expected: 99cb50e48a4556bc571dadd27931955ff458aae32f68c4d9c39d624693f69c32
Actual: 2303a6acfb6cc533e0e86e8a9d29f7e6079e118b9de3f96e07a71a11c082fa6a
Archive: /Users/chenmy/Library/Caches/Homebrew/downloads/23faa446d5ad2c8f0a288f26af4c4f70666394f107eb58154ab432da5f6705d1--jpegsrc.v9d.tar.gz
To retry an incomplete download, remove the file above.
原因分析:下载的文件md5错了。
尝试删除缓存文件
rm -rf 23faa446d5ad2c8f0a288f26af4c4f70666394f107eb58154ab432da5f6705d1--jpegsrc.v9d.tar.gz
重新安装还是报错。
最终执行:
brew edit jpeg
修改红框中的md5为下载的文件的md5后,安装继续。
安装到netbpm的时候需要svn 下载源码又报错了:
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "netpbm"
Failure while executing; `svn checkout https://svn.code.sf.net/p/netpbm/code/stable /Users/chenmy/Library/Caches/Homebrew/netpbm--svn --quiet -r 3750` exited with 1. Here's the output:
svn: E170013: Unable to connect to a repository at URL 'https://svn.code.sf.net/p/netpbm/code/stable'
svn: E230001: Server SSL certificate verification failed: certificate has expired
解决方法:
svn checkout https://svn.code.sf.net/p/netpbm/code/stable /Users/chenmy/Library/Caches/Homebrew/netpbm--svn --quiet -r 3750
在提示信息中选 P 选项,进入到下载流程。
重新执行:
brew install graphviz
程序开始继续安装。
最后就可以了。