Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)

前端 未结 9 1843
孤城傲影
孤城傲影 2020-12-02 09:38

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

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 10:22

    On Mohave I had to run the following commands - thanks go to https://tobschall.de/2018/08/07/pear-on-mojave/

    cd /tmp
    curl -s -O https://pear.php.net/install-pear-nozlib.phar
    sudo php install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
    

提交回复
热议问题