Here’s a no-frills guide to getting PEAR working on OS X. I got it working with my OS X Lion 10.6.8, but it probably works with other versions too. I started to write this in July and forgot about it and the full version of what I did is forever lost in my bash history.
- curl http://pear.php.net/go-pear.phar > go-pear.phar
- sudo php -q go-pear.phar
- Change Installation base (press 1) to /usr/local
- When prompted about automatically adding pear to your php.ini, allow it
- restart apache