Sto tentando di installare l'estensione intl su Os x El Capitan. Ogni volta che corro sudo pecl install intl
, ricevo il seguente errore nell'ultimo passaggio. Non so perché l'operazione di copia è fallita. È un bug o mi manca qualcosa?Errore di scrittura durante l'installazione dell'estensione intl su Os x El Capitan
Qualsiasi aiuto è molto apprezzato!
Nota: Ho installato autoconf
e icu4c
correttamente.
Build complete. Don't forget to run 'make test'. running: make INSTALL_ROOT="/private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0" install Installing shared extensions: /private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0/usr/lib/php/extensions/no-debug-non-zts-20121212/ running: find "/private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0" | xargs ls -dils 20728993 0 drwxr-xr-x 3 root wheel 102 Oct 19 19:33 /private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0 20729918 0 drwxr-xr-x 3 root wheel 102 Oct 19 19:33 /private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0/usr 20729919 0 drwxr-xr-x 3 root wheel 102 Oct 19 19:33 /private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0/usr/lib 20729920 0 drwxr-xr-x 3 root wheel 102 Oct 19 19:33 /private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0/usr/lib/php 20729921 0 drwxr-xr-x 3 root wheel 102 Oct 19 19:33 /private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0/usr/lib/php/extensions 20729922 0 drwxr-xr-x 3 root wheel 102 Oct 19 19:33 /private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0/usr/lib/php/extensions/no-debug-non-zts-20121212 20729923 864 -rwxr-xr-x 1 root wheel 440756 Oct 19 19:33 /private/tmp/pear/install/pear-build-rootM6zI6U/install-intl-3.0.0/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so Build process completed successfully Installing '/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so' ERROR: failed to write /usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so (copy(/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so): failed to open stream: Operation not permitted)
Sembra che sia correlato al nuovo blocco 'System Integrity Protection' di/usr. Vedi qui: http://stackoverflow.com/questions/32893056/installing-pecl-and-pear-on-osx-10-11-el-capitan –
Ho disabilitato 'System Integrity Protection' e ho risolto il problema. Grazie @DanWillis. – mocak