1 (edited by dipiosa 2016-05-12 00:53:11)

Topic: undefined symbol: zif_apcu_store in Unknown on line 0 on CentOS 7

I am on CentOS Linux release 7.2.1511.

The command

yum install php70-php-pecl-apcu

works, but gives the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/apc.so' - /opt/remi/php70/root/usr/lib64/php/modules/apc.so: undefined symbol: zif_apcu_store in Unknown on line 0

Searching gave just one similar discussion on http://forum.remirepo.net/viewtopic.php?id=3110, but running

yum --enablerepo=remi update apc-last
yum --enablerepo=remi update apcu-last

didn't succeed. How should I properly install apcu on PHP 7?

Re: undefined symbol: zif_apcu_store in Unknown on line 0 on CentOS 7

php70-php-pecl-apcu and php70-php-pecl-apcu-bc are both availablein the repo.

The output means you are trying to load apc before apcu, which shouldn't happens thanks to the .ini names which ensure correct load order (40-apcu.ini is before 50-apc.ini)

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: undefined symbol: zif_apcu_store in Unknown on line 0 on CentOS 7

Got it. Thanks

Re: undefined symbol: zif_apcu_store in Unknown on line 0 on CentOS 7

smile

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