Windows - PHPDocs cannot be installed via Pear

When running two commands to install phpdocs:

pear channel-discover pear.phpdoc.org pear install

PHPDoc / PhpDocumentor

I get this error below saying that I cannot unzip the 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
+4
source share
6 answers

It seems that the PEAR installer was not able to unzip the downloaded .tgz for some reason, perhaps the zlib extension was not compiled, for example.

As a job, you can specify that PEAR should request an uncompressed package file:

pear install --nocompress phpdoc/phpDocumentor
+6
source

Faced with the same problem, it turns out that the package for 2.8.2 has problems, because it pear install phpdoc/PhpDocumentor-2.8.1worked just fine

+10
source

@kguest →

  pear install --nocompress phpdoc/phpDocumentor

. ""

 pear upgrade C:\Users\xxxxx\AppData\Local\Temp\pear\download\phpDocumentor-2.8.2.tar

, . :

1) PEAR temp:

  C:\Users\xxxxx\AppData\Local\Temp\pear\download\phpDocumentor-2.8.2.tar

2) TAR ( 7zip).

3) , TAR:

  C:\temp\phpDocumentor.tar

.

+2

phpDocumentor 2.8.5

+2

- phpDocumentor 2.9.0

:

https://github.com/phpDocumentor/phpDocumentor2/releases

then use pear install "filepath \ phpDocumentor-2.9.0.tgz"

+2
source

This problem is spetialy for windows ios to avoid the error:

ERROR: Unable to unpack ...

set 7-zip before running phpdoc command

-1
source

Source: https://habr.com/ru/post/1589071/


All Articles