Fixing Symfony dbFusionChartsPlugin installation problem
Today I tried installing Symfony plugin dbFusionChartsPlugin but the install failed with following errors.
>> pear symfony/dbFusionChartPlugin requires package >> pear "symfony/dbFusionChartPlugin" (version >= 0.8.1, version <= >> pear 1.1.0, excluded versions: 1.1.0), downloaded version is 0.0.4 >> pear No valid packages found
So I downloaded the package file dbFusionChartPlugin-0.0.4.tgz and untarred it. I tried peeping into code and found that the creator has created .tgz with a faulty package file. When I tried to package it again, I got an error:
$ pear package Unable to open package.xml Cannot package, errors in package file
Which I fixed by moving package-dbFusionChartPlugin.xml to package.xml file.
Next I tried again to package the plugin. This time I got different errors:
$ pear package Error: <contents> can only contain <dir>, contains <file>. Use <dir name="/"> as the first dir element Parsing of package.xml from file "package.xml" failed Cannot package, errors in package file
The content section is not populated with exact directory structure. So I fixed it by adding it to package.xml file and tried to package it again. pear reported few more errors:
Notice: Uninitialized string offset: 0 in PEAR/PackageFile/v2/Validator.php on line 1087 Error: Channel validator error: field "date" - invalid release date "[automatic]" Error: Channel validator error: field "name" - package name "[automatic]" is invalid
After fixing all those errors I packaged the plugin again into .tgz file and executed command:
$ pear package
This time it packaged the plugin without any problems. Next I installed this plugin and everything went smoothly. The installation command was:
$ php symfony plugin-install /absolute/path/to/plugin/dbFusionChartPlugin-0.0.4.tgz
This package.xml file I used after fixing errors.
Summary
Download plugin package file dbFusionChartPlugin-0.0.4.tgz and untar it.
tar xzf dbFusionChartPlugin-0.0.4.tgzdbFusionChartPlugin-0.0.4It will create a new directory called dbFusionChartPlugin-0.0.4 containing all plugin files.
Change to directory
$ cd dbFusionChartPlugin-0.0.4Remove package-dbFusionChartPlugin.xml file
$ rm package-dbFusionChartPlugin.xmlDownload this package.xml file and place it in dbFusionChartPlugin-0.0.4 directory
Package the plugin again using command while in directory dbFusionChartPlugin-0.0.4
$ pear package
This will create dbFusionChartPlugin-0.0.4.tgz in dbFusionChartPlugin-0.0.4 directory.
Change to your project directory and install plugin using command:
$ php symfony plugin-install /path/to/new/dbFusionChartPlugin-0.0.4.tgz
And you are good to go.
…
Order Quality It Today!…
VINCENT
28 Jun 12 at 1:35 am
…
Purchase Unique Pills Now!…
JULIO
30 Jun 12 at 9:47 pm