Nikola
Nikola

Reputation: 133

PHP APC installation failed on Ubuntu

I have done this

sudo apt-get install php-pear php5-dev make libpcre3-dev

and then

sudo pecl install apc

But I'm getting this error:

                         ^
make: *** [apc_compile.lo] Error 1
ERROR: `make' failed

Do you have idea what can be issue? And how to solve it?

Upvotes: 9

Views: 13255

Answers (2)

JOSEPH BENOY
JOSEPH BENOY

Reputation: 169

Just an addition to the answer mentioned as correct. I got

Package 'php-apc' has no installation candidate

when tried to install with sudo apt-get install php-apc. So try sudo apt-get install php-apcu and use apcu instead of apc everywhere.

Upvotes: 1

René Höhle
René Höhle

Reputation: 27285

Why do you install PHP over the package manager and APC over PECL?

apt-get install php-apc

is much easier and you get the correct package for APC.

Upvotes: 28

Related Questions