I have PHP5 installed via macports in /opt/local/..the default location for macports. There\'s no portfile for pear. If I do a standard pear install from the pear site what dire
I had a similar issue just now, and went for installing PEAR in exactly the directory you mentioned.
curl -O http://pear.php.net/go-pear.phar
sudo php go-pear.phar
I changed the installation base directory ($prefix) to point to /opt/local and ran the installer. It amended my php.ini file to include the PEAR path.
My bash path already contained /opt/local/bin, so PEAR just worked!