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 wonder why nobody wrote an updated solution, so I do it:
sudo port install pear-PEAR
sudo port install php53-pear
Replace 53
with whatever version of PHP you want to use. Then install the pear-package you need with MacPorts! You can get a full list of available packages with
port echo name:^pear-
As mentioned in a comment of the other answer, go here for more info: https://superuser.com/q/650299/39309