오류-GraphViz 패키지의`dot` 명령을 찾을 수 없습니다

우분투 정밀 (12.04.1 LTS)

나는 PEAR를 처음 접합니다.

PEAR를 설치했습니다. 그런 다음 배를 사용하여 phpdoc을 설치했습니다.

그래프 기능을 제외하고는 잘 작동하는 것 같습니다.

이 명령을 실행했습니다.

/var/www/site5 $ phpdoc -f models/classes.php -t ./docs/classes

Collecting files .. OK
Initializing parser .. OK
Parsing files
Parsing /var/www/site5/models/classes.php
Storing cache in "/var/www/site5/docs/classes" .. OK
Load cache                                                         ..    0.026s
Preparing template "clean"                                         ..    0.069s
Preparing 15 transformations                                       ..    0.000s
Build "elements" index                                             ..    0.017s
Replace textual FQCNs with object aliases                          ..    0.151s
Build "packages" index                                             ..    0.015s
Collect all markers embedded in tags                               ..    0.015s
Build "namespaces" index and add namespaces to "elements"          ..    0.004s
Transform analyzed project into artifacts                          .. Unable to
find the `dot` command of the GraphViz package. Is GraphViz correctly installed
and present in your path?  12.465s
Analyze results and write report to log                            ..    0.004s
$

이 사이트의 아파치 가상 호스트에서 다음 줄을 가지고 있음을 깨달았습니다.

    php_value include_path ".:/var/www/site5/includes"

그래서 다른 디렉토리의 포함을 방해하고 있다고 생각했습니다 …?

그래서 나는 이것으로 줄을 바꾸려고 노력했다.

    php_value include_path ".:/var/www/site5/includes:/usr/lib/php:/usr/share/php"

그것은 작동하지 않았으므로 마침내 라인을 주석 처리 했지만 여전히 동일한 오류가 발생했습니다.

이것이 도움이되는 경우 내부에서 /usr/share다음 명령을 실행했습니다.

/usr/share$ find -name "*GraphViz*"
./php/phpDocumentor/vendor/phpdocumentor/graphviz/src/phpDocumentor/GraphViz
./php/phpDocumentor/vendor/phpdocumentor/graphviz/tests/phpDocumentor/GraphViz
./php/Image/GraphViz.php
./php/test/Image_GraphViz
./php/data/phpDocumentor/features/generate-documentation/graphs/GenerateClassDia
gramUsingGraphViz.feature
/usr/share$

왜 이것이 작동하지 않는지 모르겠습니다. 당신의 도움을 주셔서 감사합니다.



답변

“분석 된 프로젝트를 아티팩트로 변환”단계에서 PHPDoc을 생성 할 때이 문제가 발생했습니다. 다음 명령을 실행 하여이 문제를 해결했습니다.

sudo apt-get install graphviz


답변

PEAR을 사용하여 설치를 시도했습니다.

sudo pear install Image_GraphViz

나는 (실제적으로) 모든 것을 업그레이드하는 것을 끝내었고 효과가있었습니다.

apt-get --fix-missing
sudo apt-get install php-pear --fix-missing
sudo apt-get install php-pear
sudo apt-get install php5-xsl
sudo apt-get update

트릭이 정확히 무엇인지 확실하지 않지만 지금 작동합니다.


답변

비 수용자.

brew install graphviz

나를 위해 그것을 분류하고 PHPDoc에도 필요했습니다.


답변

나는 같은 문제가 있었다. “도트”가 설치되어 있는지 확인해야합니다.

“점”은 GraphViz에 포함되어 있습니다. 다음 링크에서 설치

http://www.graphviz.org/Download.php


답변