I installed XHProf and would like to see call graph visualization. I clicked on View Full Callgraph
and got following message first:
failed to execute cmd: " dot -Tpng". stderr: `sh: dot: command not found '
After some googling, I find out, that it's caused by not installed Graphviz. Then I installed it:
$ yum install graphviz
and tried again. Now I'm getting following error messages:
failed to execute cmd: " dot -Tpng". stderr: `Error: /usr/lib64/graphviz/config6 is zero sized, or other read error.
Error: /usr/lib64/graphviz/config6 is zero sized, or other read error.
There is no layout engine support for "dot"
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?
'
Indeed executing of dot -c
causes an error:
$ dot -c
Error: /usr/lib64/graphviz/config6 is zero sized, or other read error.
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_pango.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_xlib.so.6" - file not found
Segmentation fault
But the files libgvplugin_pango.so.6
and libgvplugin_xlib.so.6
are there and located in /usr/lib64/graphviz/
:
$ ls -l /usr/lib64/graphviz
total 724
...
lrwxrwxrwx 1 root root 26 May 19 13:58 libgvplugin_pango.so.6 -> libgvplugin_pango.so.6.0.0
-rwxr-xr-x 1 root root 22408 Sep 19 2012 libgvplugin_pango.so.6.0.0
lrwxrwxrwx 1 root root 25 May 19 13:58 libgvplugin_xlib.so.6 -> libgvplugin_xlib.so.6.0.0
-rwxr-xr-x 1 root root 15656 Sep 19 2012 libgvplugin_xlib.so.6.0.0
Well, as symlinks. But it should not matter. Anyway, I also tested this case:
mv /usr/lib64/graphviz/libgvplugin_pango.so.6 /usr/lib64/graphviz/libgvplugin_pango.so.6_DEACT
mv /usr/lib64/graphviz/libgvplugin_xlib.so.6 /usr/lib64/graphviz/libgvplugin_xlib.so.6_DEACT
cp /usr/lib64/graphviz/libgvplugin_pango.so.6.0.0 /usr/lib64/graphviz/libgvplugin_pango.so.6
cp /usr/lib64/graphviz/libgvplugin_xlib.so.6.0.0 /usr/lib64/graphviz/libgvplugin_xlib.so.6
No effect, still the same errors.
What is goning wrong here and how to get this working?
Environment: VirtualBox VM with CentOS 6 as guest system.