17
votes
How to install PHP, Pear, PECL, and APC with Homebrew on Mac OS X?
Now homebrew-php has been migrated to homebrew-core and by default, PECL should be installed along with your PHP.
Here are the suggested steps:
Reinstall PHP via: brew install php.
Check pecl ...
5
votes
How to install PHP, Pear, PECL, and APC with Homebrew on Mac OS X?
pecl and pear are provided with Homebrew's version of PHP:
brew install php
pecl install apcu
If you're weary that pecl and pear are provided by php, try this:
ls -al $(which pecl)
ls -al $(which ...
2
votes
How to install PHP, Pear, PECL, and APC with Homebrew on Mac OS X?
Below command should help
curl -s -O https://pear.php.net/install-pear-nozlib.phar
sudo php install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
Only top scored, non community-wiki answers of a minimum length are eligible