views:

89

answers:

1

i installed the xhprof profiling extension for php

Everything is fine except for the callgraph.php file, it returns: failed to shell execute cmd=" dot -Tpng"

so i checked and the dot utility wasn't installed, so i installed it.

it appears to be running fine from the command line so i ran the scritp again, same error: failed to shell execute cmd=" dot -Tpng"

the xhprof documentation states: the callgraph image visualization ([View Callgraph]) feature relies on the presence of Graphviz "dot" utility in your path.

but i don't understand what i need to do now, specifically the "utility in your path" part

Any help appreciated, thanks guys

A: 

Having the utility "in your path" means that it can be located by the environment variable PATH. This environment variables contains directories where the shell looks for binaries that you run without an explicit path.

Let's say the full path to dot is /opt/foo/bin/dot. Then you want to modify your PATH environment variable this way:

PATH=${PATH}:/opt/foo/bin
R Samuel Klatchko
i added it as you said PATH=${PATH}:/usr/bin/dotsame error (i should also say its from within a web browser)
mononym
@mononym - you need to set the PATH for your web server.
R Samuel Klatchko
How would i do that?
mononym