48 posts / categories / feed

Setting up Pear Command

It came to a point that I no longer can tolerate the calling of /Application/MAMP/bin/php5.2/bin/pear to just run my pear command. Here is a quick tip to just set up your pear command, is to put it within your bash_profile, and the steps:

  1. Check the bin_dir:
    /Applications/MAMP/bin/php5.2/bin/pear config-show
  2. Vi ~/.bash_profile and include the bin_dir (basically this is the location of your pear binary)
    export PATH=<your bin dir>:$PATH

     

  3. Important! Close and load your terminal again, or just run
    . ~/.bash_profile