|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2014-04-15 00:35 UTC] lovetostrikep at gmail dot com
 Description: ------------ Installing mongo through pecl doesn't work for Ubuntu 14.04(PHP 5.5.9). I can confirm it works on 13.10(PHP 5.5.3). For 14.04, I just downloaded the package and phpized successfully. What happened was that the command put 'package.xml' outside the extracted folder. I can simply move it inside the mongo folder and phpize it, but I think this should be fixed. I'm not sure if this is Ubuntu or PHP problem but since it uses Pecl, I would report it here. Test script: --------------- pecl install mongo Expected result: ---------------- Extract and install mongo extension for PHP. Actual result: -------------- could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/mongo-1.5.1.tgz" Download of "pecl/mongo" succeeded, but it is not a valid package archive Error: cannot download "pecl/mongo" Download failed install failed PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 16:00:01 2025 UTC | 
What do you think the chances are this could be related to the problems with some PHP versions being compiled for large file support and so having a gzopen64 function instead of the regular gzopen? My production server (which cannot install from PECL) has gzopen64 while my test server (can install) has gzopen. I noticed this when trying to add a plug-in to Piwigo which hits the following: if (!function_exists('gzopen')) { die('Abort '.basename(__FILE__).' : Missing zlib extensions'); } Then I tried: pecl install --nocompress imagick ...and got further than before. I don't have some of its dependencies right yet, but I was able to get pear working on it. (Note to whomever: changing the name of a function without mapping the old name is a really annoying thing.)