BDillan BDillan - 6 months ago 97
PHP Question

Windows - PHPDocs unable to install through Pear

When running the two commands to install phpdocs:


pear channel-discover pear.phpdoc.org pear install

phpdoc/phpDocumentor


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

Answer

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.

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

pear install --nocompress phpdoc/phpDocumentor