无法在PHP中启用Redis-ZSTD:8.0.2-fpm-buster

发布于 2025-02-09 05:08:57 字数 414 浏览 2 评论 0原文

在基于“ php:8.0.2-fpm-buster”图像的容器中,我运行

pecl install zstd
echo "extension=zstd.so" > /path/to/php.ini

然后运行输出

pecl install redis
enable zstd compression support? [no] : yes

,输出

checking for libzstd files in default path... not found
configure: error: Please reinstall the libzstd distribution

是否有解决方案或解决此问题的解决方案?

In a container based on "php:8.0.2-fpm-buster" image, I run

pecl install zstd
echo "extension=zstd.so" > /path/to/php.ini

then run

pecl install redis
enable zstd compression support? [no] : yes

The output is

checking for libzstd files in default path... not found
configure: error: Please reinstall the libzstd distribution

Is there a solution or a workaround to this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼前雾蒙蒙 2025-02-16 05:08:57

通过运行

apt-get -y install libzstd-dev

检查详细介绍

Solved by running

apt-get -y install libzstd-dev

Check this github issue for detail.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文