脚本宝典收集整理的这篇文章主要介绍了在OSX上通过PEAR安装的PhpDocumentor无法正常工作 – 缺少文件?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
Warning: require(PHPDocumentor/PHPDocumentor/PHPdoc.inc): Failed to open stream: No such file or directory in /usr/local/bin/PHPdoc on line 40 Fatal error: require(): Failed opening required 'PHPDocumentor/PHPDocumentor/PHPdoc.inc' (include_path='.:/usr/share/pear') in /usr/local/bin/PHPdoc on line 40
我在网上找不到任何关于错误的内容,所以我再次通过命令行卸载/重新安装,没有错误,但我遇到了同样的问题.我忽略了什么吗?正如我所说,我对PEAR很新:)
谢谢. d
我运行了梨配置显示为@ashnazg详细,我的PHP_dir设置为/usr/lib / PHP.我试着从那里运行PHPdoc -h而且 – 瞧! – 有效.所以对我来说问题是PHP需要知道这条路径.我编辑了PHP.ini(对我来说是在/PRivate/etc/PHP.ini中)并编辑了include_path以包含/usr/lib / PHP.我看起来像:
include_path = ".:/usr/lib/PHP"
在那之后,它就像一个魅力!希望这有助于其他人. FWIW,我在SNow Leopard上,我通过运行sudo pear install PHPdocumentor安装了PHPdoc.
以上是脚本宝典为你收集整理的在OSX上通过PEAR安装的PhpDocumentor无法正常工作 – 缺少文件?全部内容,希望文章能够帮你解决在OSX上通过PEAR安装的PhpDocumentor无法正常工作 – 缺少文件?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。