When you are trying to install APC on Centos and WHM server through pecl installer and getting the following error as while installing APC Centos/WHM server
If pcre package is not installed on your server the above error will occur, So you have to install pcre package on the server to resolve the issue.
On Debian/Ubuntu use
On Centos use
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package pcre-devel.x86_64 0:7.8-6.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
pcre-devel x86_64 7.8-6.el6 base 318 k
Transaction Summary
======================================================================================================================================
Install 1 Package(s)
Total download size: 318 k
Installed size: 954 k
Is this ok [y/N]: y
Downloading Packages:
pcre-devel-7.8-6.el6.x86_64.rpm | 318 kB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pcre-devel-7.8-6.el6.x86_64 1/1
Verifying : pcre-devel-7.8-6.el6.x86_64 1/1
Installed:
pcre-devel.x86_64 0:7.8-6.el6
Complete!
Ater that go ahead and install APC
downloading APC-3.1.13.tgz …
Starting to download APC-3.1.13.tgz (171,591 bytes)
……………………………….done: 171,591 bytes
55 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Enable internal debugging in APC [no] :
……………………………….
………………………………..
Build process completed successfully
Installing ‘/usr/include/php/ext/apc/apc_serializer.h’
Installing ‘/usr/lib64/php/modules/apc.so’
install ok: channel://pecl.php.net/APC-3.1.13
configuration option “php_ini” is not set to php.ini location
You should add “extension=apc.so” to php.ini
That’s it.
