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.
Restart your computer.
When the screen goes black hold down command+r until you boot into the Recovery. You will see the OS X Utilities menu.
Next open Terminal. Then enter the following command.
csrutil disable
Make sure to write it down so you remember it.
Restart your mac, let it start up normally.
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
PHP Include File in Webroot from File Outside Webroot
Printing Content of a Xml File Using Xml Dom
Differencebetween the | and || Operators
Select MySQL Rows But Rows into Columns and Column into Rows
How to Get Value from Form Without Submitting It
Detect If Uploaded File Is Too Large
Simple Xml Add Namespaced Child
Fatal Error: Call to Undefined Function Openssl_Random_Pseudo_Bytes()
Illegal Command Error Code 127 in PHP Exec Function
Opposite of Nl2Br? Is It Str_Replace
Parse All Links That Contain a Specific Word in "Href" Tag
Mysqli_Fetch_Array Returning Only One Result