加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 安装APC RedHat

发布时间:2020-12-13 14:03:27 所属栏目:PHP教程 来源:网络整理
导读:我正在尝试在redhat上安装apc,所以我做了: pecl install apc 我说是的: Use apxs to set compile flags (if using APC with Apache)? [yes]: 我得到这个: checking for re2c... noconfigure: WARNING: You will need re2c 0.9.11 or later if you want to
我正在尝试在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

可能是什么问题呢?谢谢

你忘了这个包裹:
sudo yum install httpd-devel.i386

要么

sudo yum install httpd-devel

您还可能需要:

apt-get install apache2-threaded-dev

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

sudo apachectl -k graceful

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读