PHP文档器错误
我已经使用pear和命令安装了php documentorPHP文档器错误,php,Php,我已经使用pear和命令安装了php documentor $pear频道discover pear.phpdoc.org $pear安装phpdoc/phpDocumentor Error: failed to mkdir c:/php/pear/data/phpDocumentor/features/generates-documentation/create-documents-using-twigs 现在我在写作 $phpdoc run-de:/input/demo.php-te
$pear频道discover pear.phpdoc.org
$pear安装phpdoc/phpDocumentor
Error: failed to mkdir c:/php/pear/data/phpDocumentor/features/generates-documentation/create-documents-using-twigs
现在我在写作
$phpdoc run-de:/input/demo.php-te:/output
然后出现如下错误
Parsing configuration file phpDocumentor.ini...
<found in c:\php\pear\data/phpDocumentor/>
Error: cannot open phpDocumentor.ini in directory c:/xampp/php/pear/phpDocumentor
-Is phpdoc in either the path or include_path in your php.ini file?
正在分析配置文件phpDocumentor.ini。。。
错误:无法打开目录c:/xampp/php/pear/phpDocumentor中的phpDocumentor.ini
-phpdoc是在php.ini文件的路径中还是在include_路径中?
请帮忙。这可能是因为您的php位于/xampp/文件夹中,pear试图通过以下路径访问它:c:/php/pear/data/…
这只是一种解决方法,但您可以将一个虚拟c:/xampp/php/pear/文件夹从xampp复制到您的c:drive…这可能是因为您的php位于/xampp/文件夹中,pear试图通过以下路径访问它:c:/php/pear/data/..
这只是一种解决方法,但您可以将一个虚拟c:/xampp/php/pear/文件夹从xampp复制到您的c:drive…我遇到了同样的问题,并解决了它。 我的xampp已经安装了phpDocumentor 1.x。所以我需要卸载它
pear安装phpdoc/phpDocumentor
我也遇到了同样的问题并解决了。 我的xampp已经安装了phpDocumentor 1.x。所以我需要卸载它
pear安装phpdoc/phpDocumentor
我知道它很旧,但可能已经不给别人用了。 您必须更改pear配置 第一:
C:\path-to-xampp-php-pear\>pear config-show
验证配置并根据您的路径进行更改。
在我的例子中,问题是当配置被设置为c:\php\pear而不是c:\xampp\php\pear
要更改它,请执行以下操作:
pear-config-set-doc\u-dir c:\xampp\php\pear\docs
我知道它很旧,但可能会被其他人用掉。
您必须更改pear配置
第一:
C:\path-to-xampp-php-pear\>pear config-show
验证配置并根据您的路径进行更改。
在我的例子中,问题是当配置被设置为c:\php\pear而不是c:\xampp\php\pear
要更改它,请执行以下操作:
pear-config-set-doc\u-dir c:\xampp\php\pear\docs
ini文件是否存在?如果没有,您是否尝试创建它?请尝试以下答案。。已尝试,先生。仍然没有结果。ini文件存在吗?如果没有,您是否尝试创建它?请尝试以下答案。。现在尝试过了,先生。仍然没有结果。我需要@Adrian的这个解决方案(但我更改了所有不指向c:\xampp\php\peardirectory的路径)和升级pear,从清溪卸载/重新安装phpDocumentor,以使我的工作正常。我需要@Adrian的这两个解决方案(但我更改了所有不指向c:\xampp\php\peardirectory的路径)以及升级pear,从清溪卸载/重新安装phpDocumentor,以使我的工作正常。