mac php安装扩展 如 seoole apcu

     //下载 --安装 --复制扩展文件到对应目录

  wget https://pecl.php.net/get/apcu-5.1.7.tgz

  tar -zvcf pcu-5.1.7.tgz

  cd 到解压目录

     // 声明phpize 和 php-config 一般在一个目录

  找到phpize文件所在目录 xxx/phpize (在解压目录操作)

  ./configure --with-php-config=/xxx/php-config

    make && make install

    安装后的阔展一般在/php/lib/php/extensions/no-debug-non-zts-20170718下面

  复制扩展到 xxx/php/ext下面

    修改 php.ini 文件

  swoole 安装同上

 

Mac brew 安装 redis 
报错 configure: error: Please reinstall the libzstd distribution
解决方法
pecl search zstd
brew install zstd

缺少
igbinary

安装redis的扩展依赖 pecl install igbinary

     

  

  

原文地址:https://www.cnblogs.com/songyanan/p/12532389.html