Skip to content

Instantly share code, notes, and snippets.

@a-bx
Last active October 11, 2015 13:48
Show Gist options
  • Save a-bx/3868074 to your computer and use it in GitHub Desktop.
Save a-bx/3868074 to your computer and use it in GitHub Desktop.
Install Pear on MacOSX

$ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment