1 pecl 安装
PHP > 7
- #这是一个安装 pear 的 php 发行包文件
- wget http://pear.php.net/go-pear.phar
- #执行安装
- php go-pear.phar
PHP < 7
- yum install php-pear
2、pecl 安装找不到 php-config phpize 等
将 /www/server/php/74/bin/php-config 路径加入环境变量,或者单独将 php、phpize、php-config 等软链到 /usr/bin 或者 /usr/local/
软连
- ln -s /www/server/php/74/bin/php-config /usr/bin