Search code examples
packagecommandpeclzstd

cannot enable redis-zstd in php:8.0.2-fpm-buster


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?


Solution

  • Solved by running

    apt-get -y install libzstd-dev
    

    Check this github issue for detail.