【发布时间】:2013-12-29 09:37:24
【问题描述】:
在http://www.phpdoc.org/、http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_phpDocumentor.quickstart.pkg.html、https://github.com/phpDocumentor/phpDocumentor2的主页上,安装phpDocumentor的说明如下:
pear channel-discover pear.phpdoc.org
pear install phpdoc/phpDocumentor
当我这样做时,我发现它已被弃用:
[root@desktop ~]# pear channel-discover pear.phpdoc.org
Adding Channel "pear.phpdoc.org" succeeded
Discovery of channel "pear.phpdoc.org" succeeded
[root@desktop ~]# pear install PhpDocumentor
WARNING: "pear/PhpDocumentor" is deprecated in favor of "phpdoc/phpdocumentor"
Did not download optional dependencies: pear/XML_Beautifier, use --alldeps to download automatically
pear/PhpDocumentor can optionally use package "pear/XML_Beautifier" (version >= 1.1)
downloading PhpDocumentor-1.4.4.tgz ...
Starting to download PhpDocumentor-1.4.4.tgz (1,534,088 bytes)
..............................................................................................................................................................................................................................................................................................................done: 1,534,088 bytes
install ok: channel://pear.php.net/PhpDocumentor-1.4.4
[root@desktop ~]# pear uninstall PhpDocumentor
uninstall ok: channel://pear.php.net/PhpDocumentor-1.4.4
根据http://www.phpdoc.org/docs/latest/for-users/installation/using-pear.html#requirements,指令为:
$ pear install phpdoc/phpDocumentor-beta
使用 PEAR 安装 phpDocumentor 的首选方式是什么?
【问题讨论】:
-
当你运行
pear install phpdoc/phpdocumentor时会发生什么(注意小的d)??? -
我先试用了测试版,好像还可以。然后尝试了你的建议,我得到了
[root@desktop ~]# pear install phpdoc/phpdocumentor phpdoc/phpdocumentor is already installed and is the same as the released version 2.2.0 install failed [root@desktop ~]# -
好的,你已经安装好了。那有什么问题呢?
-
对不起,我在尝试测试版之前发布了这个问题。我认为我最初不应该安装测试版。随意发布一个答案,说明使用测试版或非大写的“d”,我会选择它。
标签: php centos pear phpdoc phpdocumentor2