Pecl全称The PHP Extension Community Library,php社区扩展库,由社区编写,维护。php
使用pecl方便之处在于咱们不用处处找源码包下载编译,配置,不用手动phpize,configure,make,make install,自动识别模块安装路径,测试
咱们只须要编辑php.ini配置文件开启扩展,固然咱们也须要本身配置一些参数的时候能够先下载源码再构建ui
安装peclspa
Aptcode
sudo apt install php-dev php-pear autoconf automake libtool -y
Yumblog
sudo yum install php-dev php-pear autoconf,automake,libtool -y
pecl经常使用命令
build 从C的源码中构建扩展 install 安装一个包,步骤包含(configure,make,make install) download 下载源码包 list-all 列出所有包 run-tests 运行测试(make test)
引用:https://www.myfreax.com/install-the-php-extension-with-pecl/