Re: Bad number version after upgrade PEAR 1.6
| From: | Gregory Beaver | Date: | Thu, 06 Sep 2007 23:35:52 +0000 |
| Subject: | Re: Bad number version after upgrade PEAR 1.6 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27889@lists.php.net to get a copy of this message | ||
Loic wrote:
> Hello,
>
> Escuse me for my very bad english, but i 'm french...
>
> I have a problem of version's PEAR.
>
> I will use the MDB2 API and my version of PEAR was the 1.3.xx
> and, when i would install her, i had the error message "No handlers for
> package.xml version 2.0"
>
> I have see that it was normal because, my version was < 1.4.
>
> I have also make an upgrade and after very difficults, i have win :)
>
> "pear upgrade PEAR
> Package 'PEAR-1.6.1' already installed, skipping"
>
> But, when i will install MDB2 I have this message:
>
> pear install MDB2
> downloading MDB2-2.4.1.tgz ...
> Starting to download MDB2-2.4.1.tgz (119,790 bytes)
> ...........................done: 119,790 bytes
> No handlers for package.xml version 2.0
>
> :(
>
> And if i do a pear -V, i have:
> PEAR Version: 1.3.6
> PHP Version: 5.0.4
> Zend Engine Version: 2.0.4-dev
> Running on: Linux sql2 2.6.12-12mdk #1 Fri Sep 9 18:15:22 CEST 2005 i686
>
>
> But my version is the 1.6.x......
>
> Thanks for your help !
Hi,
Type these results:
php -r "echo get_include_path();"
pear config-show |grep php_dir
You will see that php_dir is either not in your include_path or is the
wrong location. Use
pear config-set php_dir <something in your include_path>
i.e.
pear config-set php_dir /usr/local/lib/php
and then run
pear upgrade --force PEAR
Hope this helps.
Greg