dousha7645 2015-10-01 17:04
浏览 109
已采纳

在OS X上安装pecl和pear 10.11 El Capitan,macOS 10.12 Sierra,macOS 10.13 High Sierra(<10.13.3)

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?

  • 写回答

10条回答 默认 最新

  • doulai2573 2016-01-22 19:14
    关注

    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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(9条)

报告相同问题?