I found that is it easiest to navigate to the location where the files need to be like this
Then if it isn't already created. Make a local folder
mkdir local cd /usr/local
Now download the PEAR from the php.net
curl http://pear.php.net/go-pear > go-pear.php sudo php -q go-pear.php
While it was installing I left everything default not changing to typing anything. On the last part where it wanted to change the php.ini file I said no, do not alter. Below are the directions for changing it.
By default Mac OS X has a php.ini.default file which is best to make a copy
cd /etc cp php.ini.default php.ini
Now edit the file.
NOTE: I used the CTRL+W in nano to find the "include_path". I then added to the path.
Now you need to restart Apache. Also you can check to make sure that PEAR is working by typing the following
If you get back something then you will have successfully installed PEAR.