Topic: Installing APC gives me dependency errors

I'm running this:

yum -y --enablerepo remi --enablerepo remi-test install php-pecl-apc

The output is:

Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-apc.i386 0:3.1.6-2.el5.art set to be updated
--> Processing Dependency: php(api) = 20041225 for package: php-pecl-apc
--> Processing Dependency: php(zend-abi) = 20060613 for package: php-pecl-apc
--> Finished Dependency Resolution
php-pecl-apc-3.1.6-2.el5.art.i386 from atomic has depsolving problems
  --> Missing Dependency: php(api) = 20041225 is needed by package php-pecl-apc-3.1.6-2.el5.art.i386 (atomic)
php-pecl-apc-3.1.6-2.el5.art.i386 from atomic has depsolving problems
  --> Missing Dependency: php(zend-abi) = 20060613 is needed by package php-pecl-apc-3.1.6-2.el5.art.i386 (atomic)
Error: Missing Dependency: php(zend-abi) = 20060613 is needed by package php-pecl-apc-3.1.6-2.el5.art.i386 (atomic)
Error: Missing Dependency: php(api) = 20041225 is needed by package php-pecl-apc-3.1.6-2.el5.art.i386 (atomic)

I've been trying to find out how to install the php (api) and php (zend-abi), and have gone through other sites with what I thought were downloads using rpm install and update, but am not able to get rid of the errors.

My php -v:

PHP Warning:  PHP Startup: apc: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
PHP 5.3.5 (cli) (built: Jan  7 2011 19:01:17) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Re: Installing APC gives me dependency errors

Disable the atomic repo.

php(zend-abi) = 20060613 is provides by php 5.2.x
php(zend-abi) = 20090626 is provides by php 5.3.x


So you have installed a version build with PHP 5.2 (Module compiled with module API=20060613) adn try to run it with PHP 5.3 (PHP    compiled with module API=20090626).

php-pecl-apc-3.1.6-1.el5.remi requires php(zend-abi) = 20090626, and so, work with php-5.3.5-1.el5.remi.


+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Installing APC gives me dependency errors

That worked, much appreciated.

My php -v:

PHP 5.3.5 (cli) (built: Jan  7 2011 19:01:17) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies