Mac使用pecl安装redis错误处理方法
在Mac使用pecl安装PHP扩展redis
pecl install redis
遇到的问题:configure: error: Please reinstall the libzstd distribution
...
checking for libzstd files in default path... not found
configure: error: Please reinstall the libzstd distribution
ERROR: `/private/tmp/pear/temp/redis/configure --with-php-config=/usr/local/opt/php@7.3/bin/php-config --enable-redis-igbinary=yes --enable-redis-lzf=yes --enable-redis-zstd=yes' failed
原因:缺少zstd
解决使用brew安装就行
brew install zstd
如果没有brew则需要先安装
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
未经允许禁止转载!!!!