【发布时间】:2013-12-09 11:49:02
【问题描述】:
我在 CentOS 机器上通过 PEAR 安装 phpDocumentor 时遇到问题,我什至不知道这是 pear 还是 php 相关的。
这是我执行的命令及其输出:
# pear -v install phpdoc/phpDocumentor
## http://pastebin.com/2ijRG9KW
# /usr/local/bin/phpdoc
-bash: /usr/local/bin/phpdoc: No such file or directory
# tree -a -h /usr/local/lib/php/phpDocumentor/
## http://pastebin.com/NjynYKPL
我已经包含了 tree 命令,因为我认为那里有些地方不太好......
乍一看,这是 PEAR 还是 phpDocumentor 的问题?
编辑
试过
# whereis phpdoc
phpdoc: /usr/local/bin/phpdoc
但是
# cd /usr/local/bin
# ls -l | grep -i phpdoc
lrwxrwxrwx. 1 root root 48 Nov 23 21:46 phpdoc -> /usr/local/lib/php/phpDocumentor2/bin/phpdoc.php
-rwxr-xr-x. 1 root root 1039 Nov 24 21:31 .tmpphpdoc*
猜猜看……
-bash: cd: /usr/local/lib/php/phpDocumentor2: No such file or directory
但是有一个 phpDocumentor 文件夹(而不是 phpDocumentor2),它的树在这个 pastebin 上可用
【问题讨论】:
-
报错说/usr/local/bin/目录下没有phpdoc命令。您必须找出它在哪里(可能在 /usr/local/lib/php/phpDocumentor/ 的某个地方)。试试 which phpdoc 和/或 where phpdoc
-
我唯一拥有的是无效链接:\(见编辑)