Re: PEAR says it's the newest version when it isn't
| From: | Christian Weiske | Date: | Sat, 01 Jan 2011 17:09:06 +0000 |
| Subject: | Re: PEAR says it's the newest version when it isn't | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30888@lists.php.net to get a copy of this message | ||
Hello Nicolas,
> When I try to install PHPUnit on Mac OS X Snow Leopard, it tells me
> that my PEAR-Installer is v.1.8.0 and that 1.9.1 is required. The
> command "pear -V" shows that indeed my PEAR version is 1.8.0. When I
> do "pear upgrade PEAR" however, I get "pear/PEAR is already installed
> and is the same as the released version 1.9.1. upgrade failed".
>
> How can I upgrade to 1.9.1?
I think your PEAR setup is screwed up. You probably have two
different directories which have PEAR code in them - PEAR runs from the
first, but reads the latter.
You have several options, the best would probably be to fix the PEAR
configuration and upgrade your packages afterwards.
1. Search for PEAR.php on your disk. There should be two of them.
2. Run "pear config-show". The php_dir will point to one of them.
3. Run
Attachment: [application/pgp-signature] signature.asc
which pear and look at the file in a text editor. It contains
a line "INCDIR=...", which probably points to the other one.
4. Run "pear config-set php_dir /path/to/other/dir" to change the php
dir. Upgrade pear. You should have the correct version now.
If that does not help, wipe both PEAR installations (remove the
directories) and install it fresh.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-=≡ Geeking around in the name of science since 1982 ≡=-
Attachment: [application/pgp-signature] signature.asc