在OS X 10.11 El Capitan,macOS 10.12 Sierra,macOS 10.13 High Sierra(< 10.13.3)上安装pecl和pear [英] Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)
本文介绍了在OS X 10.11 El Capitan,macOS 10.12 Sierra,macOS 10.13 High Sierra(< 10.13.3)上安装pecl和pear的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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?
推荐答案
有一种更简单的方法-无需禁用SIP或下载自己的副本:
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
这篇关于在OS X 10.11 El Capitan,macOS 10.12 Sierra,macOS 10.13 High Sierra(< 10.13.3)上安装pecl和pear的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文