gpt4 book ai didi

documentation - 在Mac上手动安装PHPDocumentor

转载 作者:行者123 更新时间:2023-12-04 18:12:38 24 4
gpt4 key购买 nike

尝试通过PEAR install成功安装PHPDocumentor后,我手动尝试了此操作,如官方网站上所述: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文件夹中)

谢谢。

最佳答案

你试过了吗 :

curl -s http://getcomposer.org/installer | php

php composer install

在phpdocumentor2目录上(您应该找到composer.json)

Composer是php的依赖项管理器。因此,它将使用外部/供应商相关性填充phpdocumentor projet

关于documentation - 在Mac上手动安装PHPDocumentor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10338893/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com