首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装APC RedHat

安装APC RedHat
EN

Server Fault用户
提问于 2011-11-27 23:54:56
回答 1查看 988关注 0票数 16

我正试图在红帽上安装装甲运兵车,所以我做到了:

代码语言:javascript
复制
pecl install apc

我答应:

代码语言:javascript
复制
Use apxs to set compile flags (if using APC with Apache)? [yes]:

我明白了:

代码语言:javascript
复制
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to \
regenerate PHP parsers.

代码语言:javascript
复制
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

有什么问题吗?谢谢

EN

回答 1

Server Fault用户

回答已采纳

发布于 2011-11-28 00:21:36

你忘了这个包裹:

代码语言:javascript
复制
sudo yum install httpd-devel.i386

代码语言:javascript
复制
sudo yum install httpd-devel

你还可能需要:

代码语言:javascript
复制
apt-get install apache2-threaded-dev

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

代码语言:javascript
复制
sudo apachectl -k graceful
票数 20
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/335294

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档