czhdeMacBook-Pro:.ssh czh$ sudo pear channel-discover pear.phpdoc.org Password: Adding Channel "pear.phpdoc.org" succeeded Discovery of channel "pear.phpdoc.org" succeeded czhdeMacBook-Pro:.ssh czh$ pear install phpdoc/phpDocumentor Cannot install, php_dir for channel "pear.phpdoc.org" is not writeable by the current user czhdeMacBook-Pro:.ssh czh$ sudo pear install phpdoc/phpDocumentor downloading phpDocumentor-2.9.0.tgz ... Starting to download phpDocumentor-2.9.0.tgz (16,175,113 bytes) ...............................................................................done: 16,175,113 bytes install ok: channel://pear.phpdoc.org/phpDocumentor-2.9.0
(第一个错)-解决不了
1 2 3 4 5
czhdeMacBook-Pro:thinkphp_3.2.3 czh$ php phpDocumentor.phar -d . -t docs/api Could not open input file: phpDocumentor.phar czhdeMacBook-Pro:thinkphp_3.2.3 czh$ sudo php phpDocumentor.phar -d . -t docs/api Password: Could not open input file: phpDocumentor.phar
(更改路径之后报的第二个错)—解决不了也
1 2 3 4 5 6 7 8
czhdeMacBook-Pro:thinkphp_3.2.3 czh$ phpdoc -d ./ThinkPHP -t ./docs/api PHP Warning: require_once(/dompdf/dompdf/dompdf_config.inc.php): failed to open stream: No such file or directory in /usr/local/pear/share/pear/phpDocumentor/src/phpDocumentor/Bootstrap.php on line 178
Warning: require_once(/dompdf/dompdf/dompdf_config.inc.php): failed to open stream: No such file or directory in /usr/local/pear/share/pear/phpDocumentor/src/phpDocumentor/Bootstrap.php on line 178 PHP Fatal error: require_once(): Failed opening required '/dompdf/dompdf/dompdf_config.inc.php' (include_path='.:/usr/local/pear/share/pear') in /usr/local/pear/share/pear/phpDocumentor/src/phpDocumentor/Bootstrap.php on line 178
Fatal error: require_once(): Failed opening required '/dompdf/dompdf/dompdf_config.inc.php' (include_path='.:/usr/local/pear/share/pear') in /usr/local/pear/share/pear/phpDocumentor/src/phpDocumentor/Bootstrap.php on line 178 czhdeMacBook-Pro:thinkphp_3.2.3 czh$
bogon:~ czh$ php phpDocumentor.phar -d test -t docs/api Collecting files .. OK Initializing parser .. OK Parsing files Parsing /Users/czh/test/test.php Storing cache in "/Users/czh/docs/api" .. OK Load cache .. 0.000s Preparing template "clean" .. 0.003s Preparing 17 transformations .. 0.000s Build "elements" index .. 0.000s Replace textual FQCNs with object aliases .. 0.000s Resolve @link and @see tags in descriptions .. 0.000s Enriches inline example tags with their sources .. 0.000s Build "packages" index .. 0.000s Build "namespaces" index and add namespaces to "elements" .. 0.000s Collect all markers embedded in tags .. 0.000s Transform analyzed project into artifacts .. Applying 17 transformations Initialize writer "phpDocumentor\Plugin\Core\Transformer\Writer\FileIo" Initialize writer "phpDocumentor\Plugin\Twig\Writer\Twig" Initialize writer "phpDocumentor\Plugin\Graphs\Writer\Graph" Execute transformation using writer "FileIo" Execute transformation using writer "FileIo" Execute transformation using writer "FileIo" Execute transformation using writer "FileIo" Execute transformation using writer "FileIo" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "twig" Execute transformation using writer "Graph" Unable to find the `dot` command of the GraphViz package. Is GraphViz correctly installed and present in your path? 0.164s Analyze results and write report to log .. 0.000s bogon:~ czh$