其他分享
首页 > 其他分享> > MacOS安装PEAR

MacOS安装PEAR

作者:互联网

遇到俩个坑

curl -O https://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar
选择安装位置,我选择了 /usr/local

坑一phpize 没有安装autoconf

Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

macOS手动安装 m4, autoconf, automake, libtool
curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
curl -O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz

坑二 pecl 安装无权限
然而 /usr 目录 被内核保护。
怎样关闭,请见http://www.pc6.com/edu/86809.html

标签:kernel,MacOS,http,tar,mirrors,PEAR,org,autoconf,安装
来源: https://blog.51cto.com/rhino/2486700