尝试安装
PHPDocumentor与PEAR安装没有成功后,我尝试手动,如官方网站上详细说明:
http://www.phpdoc.org/docs/latest/for-users/installation.html
我下载了文件并在/usr/bin /上创建别名但是当我尝试通过终端y执行phpdoc.php时它显示错误.
这是我尝试的:
> cd /usr/bin/
> ./phpdoc.php
这是错误:
PHP Warning: include_once(/Applications/MAMP/htdocs/phpdocumentor/src/phpDocumentor/../../vendor/autoload.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/phpdocumentor/src/phpDocumentor/Bootstrap.php on line 72
PHP Warning: include_once(): Failed opening '/Applications/MAMP/htdocs/phpdocumentor/src/phpDocumentor/../../vendor/autoload.php' for inclusion (include_path='/Applications/MAMP/bin/php/php5.3.6/lib/php/:/Applications/MAMP/bin/php/php5.3.6/lib/bin/') in /Applications/MAMP/htdocs/phpdocumentor/src/phpDocumentor/Bootstrap.php on line 72
PHP Fatal error: Class 'phpDocumentor_Task_Runner' not found in /Applications/MAMP/htdocs/phpdocumentor/bin/phpdoc.php on line 37
我正在使用Mac Os X,正如您所看到的,我使用MAMP来运行Apache.
这里发生了什么?为什么它试图打开一个不存在的文件? (因为它在PHPDocumentor文件夹中确实不存在)
谢谢.