Bug #69444 [Opn]: can not use pecl install
| From: | derick@php.net | Date: | Tue, 14 Apr 2015 12:01:39 +0000 |
| Subject: | Bug #69444 [Opn]: can not use pecl install | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-21038@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69444&edit=1
ID: 69444
Updated by: derick@php.net
Reported by: cjbw1234 at 163 dot com
Summary: can not use pecl install
Status: Open
Type: Bug
-Package: PECL bug system
+Package: Website problem
Operating System: CentOS 5.x & 6.x, OS X 10.10.3
PHP Version: 5.4.39
-Assigned To:
+Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
For some reason, the .tar file, is *also* compressed with gzip:
derick@whisky:/tmp $ wget -q https://pecl.php.net/get/mongo-1.6.6.tar
derick@whisky:/tmp $ file mongo-1.6.6.tar
mongo-1.6.6.tar: gzip compressed data, max compression, from Unix
derick@whisky:/tmp $ wget -q https://pecl.php.net/get/mongo-1.6.6.tgz
derick@whisky:/tmp $ file mongo-1.6.6.tgz
mongo-1.6.6.tgz: gzip compressed data, max compression, from Unix
The ".tar" variant should of course not be gzip'ed...
As a workaround, adding the "gzip" extension to PHP, should solve this.
Previous Comments:
------------------------------------------------------------------------
[2015-04-14 11:01:50] cjbw1234 at 163 dot com
Description:
------------
*) deploy a linode with CentOS 6.5
*) download php-5.4.39
*) configure php with --with-openssl support
*) make && make install
*) pecl install mongo
after these steps, you will find pecl can't insall any package.
Test script:
---------------
Here is the pecl output:
[root@li718-127 ~]# pecl install mongo
downloading mongo-1.6.6.tar ...
Starting to download mongo-1.6.6.tar (207,564 bytes)
............................................done: 207,564 bytes
could not extract the package.xml file from "/tmp/pear/download/mongo-1.6.6.tar"
Download of "pecl/mongo" succeeded, but it is not a valid package archive
Error: cannot download "pecl/mongo"
Download failed
install failed
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69444&edit=1