Apache2.4.9编译event错误解决过程

Apache httpd 2.4.9 Released已经可以下载,其中EVENT MPM已经是我编译Apache首选的MPM了,但是,编译的时候却出错了:

configure: error: MPM event is not supported on this platform

查看config.log文件,搜索event有这么几行:

configure:25851: checking if event MPM supports this platform
configure:25866: result: no - APR skiplist is not available
configure:27396: result: worker - event is not supported
不应该出现的问题啊,各种Google,各种百度,各种Bing,就是没有相同结果,然后对比网络上别人做的结果,唯一的差别就是Apache的版本的区别,普遍使用的版本是httpd-2.4.6,从http://archive.apache.org/dist/httpd/将httpd-2.4.6.tar.gz wget下来,用原来的编译参数编译,终于过去了,查看:

[root@www httpd-2.4.9]# httpd -t -D DUMP_MODULES
Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 authn_file_module (shared)
 authn_core_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_core_module (shared)
 access_compat_module (shared)
 auth_basic_module (shared)
 reqtimeout_module (shared)
 filter_module (shared)
 mime_module (shared)
 log_config_module (shared)
 env_module (shared)
 headers_module (shared)
 setenvif_module (shared)
 version_module (shared)
<strong> mpm_event_module (shared)</strong>
 unixd_module (shared)
 status_module (shared)
 autoindex_module (shared)
 dir_module (shared)
 alias_module (shared)
[root@www httpd-2.4.9]#
然后问题就逐渐明朗了,问题应该是发生在了版本的更新上,查询http://www.apache.org/dist/httpd/CHANGES_2.4,在 Changes with Apache 2.4.7部分发现这一行:

  *) APR 1.5.0 or later is now required for the event MPM.
Apache httpd-2.4.7及以上版本需要APR 1.5.0或以上版本了。

问题解决。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wooowlili

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值