Installing Pecl and Pear on Os X 10.11 El Capitan, MACos 10.12 Sierra, MACos 10.13 High Sierra (< 10.13.3)

Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra ( 10.13.3)

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

Failed to write error when installing intl extension on Os x El Capitan

I had this same issue while trying to install intl.

Had to disable the System Integrity Protection like Dan Willis suggested.

  1. Restart your computer.

  2. When the screen goes black hold down command+r until you boot into the Recovery. You will see the OS X Utilities menu.

  3. Next open Terminal. Then enter the following command.

    csrutil disable

Make sure to write it down so you remember it.


  1. Restart your mac, let it start up normally.

  2. Open Terminal again and install INTL again

    sudo pecl install intl

It will now complete the installation.

pecl:command not found

At least on Arch Linux you must install php-pear package for the pecl tool by using this command:

pacman -S php-pear


Related Topics



Leave a reply



Submit