failed to execute dot. Is Graphviz installed? Error: exec: "dot": executable file not found in $PATH
failed to execute dot. Is Graphviz installed? Error: exec: "dot": executable file not found in %PATH%
基于pprof进行分析并打开图形界面时报该错,原因是Graphviz这个组件没有安装。
Windows下
Linux下
下载
exe直接安装后即可完成。
压缩版解压后在系统环境变量的Path变量下新建一个,为graphviz的bin路径,例如:
D:\package\graphviz\bin
Linux下安装
Ubuntu系列
sudo apt install graphviz
Redhat系列
sudo yum install graphviz