安装APC RedHat


16

我试图在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

可能是什么问题呢?谢谢


3
这是StackOverflow的主题。相反,它属于ServerFault。请参阅常见问题解答:stackoverflow.com/faq
多项式

提示是yum whatprovides *bin/apxs
量子

Answers:


20

您忘记了这个包裹:

sudo yum install httpd-devel.i386

要么

sudo yum install httpd-devel

您可能还需要:

apt-get install apache2-threaded-dev

完成后,再试一次,最后重新启动apache:

sudo apachectl -k graceful
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.