First do:
curl http://pear.php.net/go-pear > go-pear.php sudo php -q go-pear.php |
Change installation directory to:
/usr/local |
Add include path in /etc/php.ini:
include_path = ".:/usr/share/pear" |
Restart Apache.
Tutorial based on http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/. Thanks !