php - PHPDoc GraphViz error unable to fork and dot command not found -


i have found few related questions here seem solved installing missing graphiz. in case installed , in path.

the error phpdoc is:

 execute transformation using writer "graph"  php warning:  exec(): unable fork [dot -v 2>&1] in     /usr/share/php/phpdocumentor/src/phpdocumentor/plugin/graphs/writer/graph.     php on line 254  php stack trace:  php   1. {main}() /usr/bin/phpdoc:0  php   2. phpdocumentor\application->run() /usr/bin/phpdoc:24  php   3. symfony\component\console\application->run() /usr/share/php/phpdocumentor/src/phpdocumentor/application.php:183  php   4. symfony\component\console\application->dorun() /usr/share/php/phpdocumentor/vendor/symfony/console/symfony/component/console/application.php:126  php   5. symfony\component\console\application->doruncommand() /usr/share/php/phpdocumentor/vendor/symfony/console/symfony/component/console/application.php:195  php   6. symfony\component\console\command\command->run() /usr/share/php/phpdocumentor/vendor/symfony/console/symfony/component/console/application.php:874  php   7. phpdocumentor\command\project\runcommand->execute() /usr/share/php/phpdocumentor/vendor/symfony/console/symfony/component/console/command/command.php:253  php   8. symfony\component\console\command\command->run() /usr/share/php/phpdocumentor/src/phpdocumentor/command/project/runcommand.php:275  php   9. phpdocumentor\transformer\command\project\transformcommand->execute() /usr/share/php/phpdocumentor/vendor/symfony/console/symfony/component/console/command/command.php:253  php  10. phpdocumentor\console\output\output->writetimedlog() /usr/share/php/phpdocumentor/src/phpdocumentor/transformer/command/project/transformcommand.php:206  php  11. call_user_func_array:{/usr/share/php/phpdocumentor/src/phpdocumentor/console/output/output.php:59}() /usr/share/php/phpdocumentor/src/phpdocumentor/console/output/output.php:59  php  12. phpdocumentor\transformer\transformer->execute() /usr/share/php/phpdocumentor/src/phpdocumentor/console/output/output.php:59  php  13. phpdocumentor\transformer\transformer->transformproject() /usr/share/php/phpdocumentor/src/phpdocumentor/transformer/transformer.php:141  php  14. phpdocumentor\transformer\transformer->applytransformationtoproject() /usr/share/php/phpdocumentor/src/phpdocumentor/transformer/transformer.php:275  php  15. phpdocumentor\plugin\graphs\writer\graph->transform() /usr/share/php/phpdocumentor/src/phpdocumentor/transformer/transformer.php:312  php  16. phpdocumentor\plugin\graphs\writer\graph->processclass() /usr/share/php/phpdocumentor/src/phpdocumentor/plugin/graphs/writer/graph.php:58  php  17. phpdocumentor\plugin\graphs\writer\graph->checkifgraphvizisinstalled() /usr/share/php/phpdocumentor/src/phpdocumentor/plugin/graphs/writer/graph.php:72  php  18. exec() /usr/share/php/phpdocumentor/src/phpdocumentor/plugin/graphs/writer/graph.php:254  unable find `dot` command of graphviz package. graphviz correctly installed , present in path?  32.682s 

i know graphiz installed , present in path because:

~$ dot -v

 dot - graphviz version 2.36.0 (20140111.2315)  libdir = "/usr/lib/graphviz"  activated plugin library: libgvplugin_dot_layout.so.6  using layout: dot:dot_layout  activated plugin library: libgvplugin_core.so.6  using render: dot:core  using device: dot:dot:core  plugin configuration file:  /usr/lib/graphviz/config6  loaded.  render :  cairo dot fig gd map pic pov ps svg tk vml vrml xdot  layout :  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp        twopi  textlayout :  textlayout  device :  canon cmap cmapx cmapx_np dot eps fig gd gd2 gif gv imap imap_np ismap jpe jpeg jpg pdf pic plain plain-ext png pov ps ps2 svg svgz tk vml vmlz vrml wbmp x11 xdot xdot1.2 xdot1.4 xlib  loadimage  :  (lib) eps gd gd2 gif jpe jpeg jpg png ps svg xbm 

additionally, if run phpdoc sudo works fine. above error appearing when run phpdoc user. work particular situation need work user however.

i can't think in particular case issue more related "unable fork" "unable find dot command". not sure how address particular issue.

some other perhaps helpful information:

 ubuntu 14.04  php 5.5.33  phpdocumentor version 2.8.5                  total    used   free    shared    buffers   cached  mem:           992      512    479     9         55        319 


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -