Install Pear OS X Leopard

#1 wget -O go-pear.php

#2 php go-pear.php

#3 Change the installation directory to whatever you would like and edit settings as appropriate.

#4 Allowed edit to php.ini to add the PEAR directory to the path in php.ini.

#5 Now you can run pear commands assuming you edited your PATH to include the PEAR installation directory.

pear -V

Now you can add pear packages with pear install command

How to install the pear package: HTML_QuickForm

#1 pear install HTML_QuickForm