PECL is bundled with PEAR. So this is as simple as installing PEAR on Mac OS X.
curl -O http://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar
Configure and Install PEAR
– Choose 1, and fill
– Choose 4, and fill
Then check your pear version