APC RedHatをインストールする

APC RedHatをインストールする

私はRedHatにAPCをインストールしようとしているので、次のようにしました:

pecl install apc

私は言ったはいに:

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

そして私はこれを得ます:

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

何が問題なのでしょうか?ありがとう

答え1

このパッケージを忘れました:

sudo yum install httpd-devel.i386

または

sudo yum install httpd-devel

以下のものも必要になる場合があります:

apt-get install apache2-threaded-dev

完了したら、もう一度試して、最後に Apache を再起動します。

sudo apachectl -k graceful

関連情報