Needing to use PEAR I stumbled upon a simple tutorial to install PEAR on Mac OS X by Jason McCreary.
Simply follow the three steps and you’ll be up and running!
- Download PEAR
- Configure and Install PEAR
- Verify PEAR
Download
Run the following bash commands
curl -O http://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar
Configure and Install
- Set the ”Installation base ($prefix)” to ”/usr/local/pear”.
- Type 1 and press return.
- Enter: /usr/local/pear
- Set the ”Binaries directory” to ”/usr/local/bin”
- Type 4 and press return.
- Enter: /usr/local/bin
- Finish the configuration by pressing return twice.
Verify
By running any pear command you should be able to verify if it works or not.
E.g.
$ pear version
PEAR Version: 1.9.4
PHP Version: 5.3.15
Zend Engine Version: 2.3.0
...