PHP Laravel NGINX html css Bootstrap Python Symfony Apache Windows linux jquery Django ASP vanilla Slim vagrant docker Homestead MySQL Redis Git SVN ssh Root vim PhpStorm Pycharm sass less PHP Laravel android html css Vue Angular React NGINX html css Javascript

安装 phpredis 报错 configure: error: Please reinstall the libzstd distribution 的解决办法

原创

原创不易 ~ 转载请注明出处哦

最近在安装phpredis时,根据官方文档给出的安装方式进行安装

https://github.com/phpredis/phpredis/blob/develop/INSTALL.markdown

出现了以下错误:

checking for libzstd files in default path... not found
configure: error: Please reinstall the libzstd distribution
ERROR: `/tmp/pear/temp/redis/configure --with-php-config=/usr/bin/php-config --enable-redis-igbinary=no --enable-redis-lzf=n --enable-redis-zstd=n' failed

经过一番测试,发现只需要安装一下libzstd-dev即可:

$ sudo apt update && sudo apt install libzstd-dev

正在加载验证码......
请先完成验证