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或以上版本了。
问题解决。