首页 > 其他 > 详细

xhprof failed to execute cmd: " dot -Tpng". stderr: `sh: dot: command not found '

时间:2015-05-16 20:31:15      阅读:600      评论:0      收藏:0      [点我收藏+]
安装graphviz

地址:http://www.graphviz.org/pub/graphviz/ARCHIVE/

下载安装

1
2
3
4
5
6
7
wget http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.28.0.tar.gz
 
tar xzvf graphviz-2.28.0.tar.gz
 
./configure --prefix=/home/mahao01/local/graphviz-2.28.0
 
make && make install
如果出现dot: command not found

改一下 : xhprof_lib/utils/callgraph_utils.php 中的 xhprof_generate_image_by_dot函数中的 $cmd

1
2
3
4
5
6
#改之前
$cmd = " dot -T".$type;
 
 
#改之后
 $cmd = " export LD_LIBRARY_PATH=/home/mahao01/local/graphviz/lib && /home/mahao01/local/graphviz/bin/dot -T"    .$type;

 

xhprof failed to execute cmd: " dot -Tpng". stderr: `sh: dot: command not found '

原文:http://www.cnblogs.com/allenhaozi/p/4508404.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!