Deployment of one of the application in our environment started failing while trying to install PHP Redis module on Amazon Linux. The environment has PHP 8 installed. I am getting the below error.
---> Package php-pecl-redis.x86_64 0:2.2.8-1.el7 will be installed
--> Processing Dependency: php(api) = 20100412-64 for package: php-pecl-redis-2.2.8-1.el7.x86_64
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-pecl-redis-2.2.8-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: php-pecl-redis-2.2.8-1.el7.x86_64 (epel)
Requires: php(zend-abi) = 20100525-64
Installed: php-common-8.0.27-1.amzn2.x86_64 (@amzn2extra-php8.0)
php(zend-abi) = 20200930-64
Available: php-common-5.4.16-43.amzn2.x86_64 (amzn2-core)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-43.amzn2.0.1.x86_64 (amzn2-core)
php(zend-abi) = 20100525-64
..
I have listed the php-pecl-redis packages after 'yum update'. Below is the version available.
yum list | grep "php\-pecl\-redis*"
php-pecl-redis.x86_64 2.2.8-1.el7 epel
I am newbie to linux and could not figure out how to fix this. Please help.