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 ...
kenorb's user avatar
  • 25.4k
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 ...
tresf's user avatar
  • 281
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
Gampesh's user avatar
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible