Home » Centos/RHEL » make: *** [apc.lo] Error 1 while installing APC Centos/WHM server

make: *** [apc.lo] Error 1 while installing APC Centos/WHM server

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

make: *** [apc.lo] Error 1

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

# aptitude install libpcre3-dev

On Centos use

#yum install pcre pcre-devel
Loaded plugins: fastestmirror
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

#pecl install APC
WARNING: channel “pecl.php.net” has updated its protocols, use “pecl channel-update pecl.php.net” to update
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.

About

I am founder and webmaster of www.linuxpcfix.com and working as a Sr. Linux Administrator (Expertise on Linux/Unix & Cloud Server) and have been in the industry from last 7 years.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud