$ curl http://pear.php.net/go-pear.phar > go-pear.php
$ sudo php -q go-pear.php
- Note: To install default configuration
- Edit .bash_profile (or .bashrc) and add:
export PATH=/Users/username/pear/bin:$PATH
$ source ~/.bash_profile
- test if pear works:
$ pear help
- Update Pear:
$ sudo pear upgrade-all