42
38
Most tutorials online show how to install PEAR by doing this:
sudo apt-get install php-pear
This installs version 1.6.1. It works great because it's super easy! My problem is that I want to install PHPUnit and it requires PEAR version 1.8.1 so my install of PHPUnit failed. So how do I install a newer version of PEAR on Ubuntu?
Incidentally it might be good to add
apt-get install curl
andsudo pecl install xdebug
for code coverage – David – 2011-04-18T04:08:59.3903actually, I just discovered that
apt-get install php5-xdebug
is the easiest. =] – Andrew – 2011-10-04T20:31:08.3032I've been burned a few times in the version difference between what is in the public repo and what's on pear, last time was earlier this year ( 2011 ) where there was a regression in the Ubuntu repo. – David – 2011-10-04T21:18:14.823