Installieren Sie APC RedHat

Installieren Sie APC RedHat

ich versuche, APC auf Redhat zu installieren, also habe ich Folgendes getan:

pecl install apc

Ich sagteJaZu:

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

und ich bekomme Folgendes:

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

Und

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

Was könnte das Problem sein? Danke

Antwort1

Sie haben dieses Paket vergessen:

sudo yum install httpd-devel.i386

oder

sudo yum install httpd-devel

Möglicherweise benötigen Sie auch:

apt-get install apache2-threaded-dev

Wenn der Vorgang abgeschlossen ist, versuchen Sie es erneut und starten Sie Apache am Ende neu:

sudo apachectl -k graceful

verwandte Informationen