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 am trying to install apc on redhat so i did:

pecl install apc

i said yes to:

Use apxs to set compile flags (if using APC with Apache)? [yes]:

and i get this:

checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to \
regenerate PHP parsers.


checking whether apc needs to get compiler flags from apxs...

Sorry, I was not able to successfully run APXS.  Possible reasons:

1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
The output of apxs follows
/tmp/tmpJQuZdD/APC-3.0.16/configure: line 3846: apxs: command not found
configure: error: Aborting
ERROR: `/tmp/tmpJQuZdD/APC-3.0.16/configure --with-apxs' failed

what could be the problem? Thanks

share|improve this question

migrated from Nov 28 '11 at 1:06

This question came from our site for professional and enthusiast programmers.

This is off topic for StackOverflow. It belongs on ServerFault instead. Please see the FAQ: – Polynomial Nov 28 '11 at 0:09
The hint is yum whatprovides *bin/apxs. – quanta Nov 28 '11 at 2:41
up vote 20 down vote accepted

You forgot this package:

sudo yum install httpd-devel.i386


sudo yum install httpd-devel

You also might need:

apt-get install apache2-threaded-dev

Once it's complete, try again and at the end restart apache:

sudo apachectl -k graceful
share|improve this answer
let's me try this – zackaryka Nov 28 '11 at 0:29
i just realize i have a 64 bits version/server does it metter which httpd-devel i use? – zackaryka Nov 28 '11 at 0:55
use httpd-devel – Book Of Zeus Nov 28 '11 at 0:58
thanks it worked – zackaryka Nov 28 '11 at 1:09
you are welcome – Book Of Zeus Nov 28 '11 at 1:10

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.