Windows - PHPDocs 无法通过 Pear 安装 [英] Windows - PHPDocs unable to install through Pear

查看:64
本文介绍了Windows - PHPDocs 无法通过 Pear 安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行两个命令安装phpdocs时:

When running the two commands to install phpdocs:

pear channel-discover pear.phpdoc.org pear install

pear channel-discover pear.phpdoc.org pear install

phpdoc/phpDocumentor

phpdoc/phpDocumentor

我在下面收到此错误,说我无法解压缩下面的 tgz 文件.

I get this error below saying I am unable to unpack a tgz file below.

C:\wamp\bin\php\php5.5.12\pear>pear channel-discover pear.phpdoc.org
            
C:\wamp\bin\php\php5.5.12\pear>pear install phpdoc/phpDocumentor
downloading phpDocumentor-2.8.2.tgz ...
Starting to download phpDocumentor-2.8.2.tgz (16,246,834 bytes)
            ................................................................................
            ................................................................................
            ................................................................................
..........................done: 16,246,834 bytes
ERROR: unable to unpack C:\Users\me\AppData\Local\Temp\pear\download\p
            hpDocumentor-2.8.2.tgz

推荐答案

看起来 PEAR 安装程序由于某种原因无法解压缩下载的 .tgz,例如可能没有编译 zlib 扩展.

It looks like the PEAR installer was unable to uncompress the downloaded .tgz for some reason, perhaps the zlib extension wasn't compiled in, for example.

>

作为一种变通方法,您可以指定 PEAR 应该请求未压缩的包文件:

As a work-around, you can specify that PEAR should request the uncompressed package file instead:

pear install --nocompress phpdoc/phpDocumentor

这篇关于Windows - PHPDocs 无法通过 Pear 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆