Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have php 5.3.6 and ubuntu. I want to install APC.

When I do the $ pecl install apc, I eventually get an error:

In file included from /tmp/pear/temp/APC/apc.c:44:0:
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [apc.lo] Error 1
ERROR: `make' failed

When I try to do $ yum install php-pecl-apc I always get error: No package "php-pecl-apc" available

I tried doing a $ yum clean all, but it did not make a difference.

I am not sure how to proceed. What do you suggest?

share|improve this question
Ubuntu and Yum? That's... unusual. – Ladadadada Dec 11 '11 at 23:20
up vote 8 down vote accepted

yum install pcre-devel . You need the Perl-compatible regular expression library development header files

You mention Ubuntu, might as well use apt-get install libpcre3-dev

share|improve this answer
I just get yum install pcre-devel There are no enabled repos. Run "yum repolist all" to see the repos you have. You can enable repos with yum-config-manager --enable <repo> when I try this. – kwoxer May 8 at 18:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.