axlotl axlotl - 1 year ago 331
PHP Question

Installing pecl and pear on OS X 10.11 El Capitan or macOS 10.12 Sierra

So it looks like the new 'System Integrity Protection' lockdown of /usr (among other directories) makes pear and pecl a non-starter. Has anyone found a workaround short of disabling it?

Answer Source

There's a much easier way — no need to disable SIP or download your own copy:

sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download