下载 pear

curl -O https://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar

 

配置和安装 pear

输入 1,回车

输入 /usr/local/pear,回车

输入 4,回车

输入 /usr/local/bin,回车

 

验证安装是否成功

pear version

 

接着,就可以使用 pecl 命令来安装 php 扩展了,如 pecl install xdebug

安装完后需要在 php.ini 中添加对应的 extension=/path/to/xxx.so

 

 

官方文档地址:https://pear.php.net/manual/en/installation.getting.php

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-10-02
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
猜你喜欢
  • 2021-05-15
  • 2021-08-29
  • 2022-12-23
  • 2021-11-09
  • 2021-06-24
  • 2022-01-25
相关资源
相似解决方案