Symfony plugins fail to install Print

  • 25

If Symfony fails to install or upgrade plugins indicating that it could not find the package with an error message like this:

-bash-3.2# symfony plugin:install sfPhpunitPlugin
>> plugin    installing plugin "sfPhpunitPlugin"
>> sfPearFrontendPlugin Could not download from
>> sfPearFrontendPlugin "http://plugins.symfony-project.org/get/sfPhpunitPlugin/sfPhpunitPlugin-1.0.3.tar"
>> sfPearFrontendPlugin (File
>> sfPearFrontendPlugin http://plugins.symfony-project.org:80/get/sfPhpunitPlugin/sfPhpunitPlugin-1.0.3.tar
>> sfPearFrontendPlugin not valid (received: HTTP/1.1 404 Not Found
>> sfPearFrontendPlugin ))
>> sfPearFrontendPlugin Invalid or missing remote package file
                                                                                                                                                       
  Plugin "sfPhpunitPlugin" installation failed: Package "http://plugins.symfony-project.org/get/sfPhpunitPlugin/sfPhpunitPlugin-1.0.3.tar" is not valid

Notice that the extension of the package is .tar The extension should be .tgz actually.

The source of the problem is that PHP may be lacking the extension zlib, so make sure you either compile PHP with this extension or it is being loaded dynamically. To compile PHP with the zlib extension run configure with something like the following:

'./configure' '--with-apxs2=/usr/sbin/apxs' '--with-gd' '--with-pdo-mysql' '--with-curl' '--with-mysql' '--with-freetype-dir=/usr' '--with-jpeg-dir=/usr' '--with-mcrypt' '--with-openssl' '--with-zlib'

 

 


Was this answer helpful?

« Back