Upgrading PEAR on RHEL 4
Monday, November 27th, 2006Problem: You need to install PEAR packages that use package.xml version 2.0 but you’re running the stock RedHat RPM of PHP which is at php-pear-4.3.9-22.i386.prm (aka pear 1.3.1).
pear upgrade Date
downloading Date-1.4.7.tgz ...
Starting to download Date-1.4.7.tgz (55,754 bytes)
.............done: 55,754 bytes
No handlers for package.xml version 2.0
You can’t upgrade PEAR using pear upgrade PEAR because you need at least pear-1.3.3 to get to the latest version.
requires package `PEAR' >= 1.3.3
PEAR: Dependencies failed
Solution:
- Download PEAR 1.3.3
- Install with
pear upgrade /path/to/pear-1.3.3 - Upgrade PEAR with
pear upgrade pear - Optional: Upgrade your existing packages with
pear upgrade-all
You may now install packages that use package.xml version 2.0. You are also ahead of the game with regard to RPMs. The next RHN update may hose what you have just done. You should probably consider marking php-pear as a package to ignore.
Update: As noted in the comments, you will need to upgrade to 1.4.11 before you can upgrade to 1.5.0.

