I’m trying to follow this tutorial https://codingexplained.com/dev-ops/mac/installing-php-intl-extension-os-x-mavericks in order to install the PHP extension intl on my Mac.
However, when I launch the command sudo php install-pear-nozlib.phar
. I get the following error in my Terminal:
[PEAR] Archive_Tar: failed to mkdir /usr/lib/php/pear/Archive
[PEAR] Console_Getopt: failed to mkdir /usr/lib/php/pear/Console
warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.7)
warning: pear/PEAR requires package "pear/Structures_Graph" (recommended version 1.0.4)
warning: pear/PEAR requires package "pear/Console_Getopt" (recommended version 1.2.3)
warning: pear/PEAR requires package "pear/XML_Util" (recommended version 1.2.1)
[PEAR] PEAR: failed to mkdir /usr/lib/php/pear/OS
[PEAR] Structures_Graph: failed to mkdir /usr/lib/php/pear/docs/Structures_Graph/docs/html/media
[PEAR] XML_Util: failed to mkdir /usr/lib/php/pear/docs/XML_Util/examples
I don’t understand why it’s failing to make directories considering I’m using sudo
for the command.
I thought it might be related to the root user, so I enabled it following these instructions https://coolestguidesontheplanet.com/enable-root-user-macos-sierra/, but that doesn’t change anything.
Anybody had this problem before?
Thanks in advance.