PHP Laravel NGINX Symfony Dubbo Bootstrap Python Symfony Apache Protobuf linux Spring Django ASP Thrift Slim Typescript Docker Homestead MySQL Redis Git SVN ssh Root vim java scala sass less PHP Avro android html Golang Vue Angular React NGINX kotlin Rust 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

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