未找到httpd-2.4.18 CentOS 7 RPM构建文件:mod_mpm_event.so

时间:2016-02-15 12:07:32

标签: apache centos7 rpmbuild

我尝试使用httpd-2.4.18在CentOS 7.2.1511(Core)上为rpmbuild -tb ~/rpmbuild/SOURCES/httpd-2.4.18.tar.bz2构建RPM。但是,我一直收到以下错误:

error: File not found: /home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/lib64/httpd/modules/mod_mpm_event.so
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.HmrPlX
+ umask 022
+ cd /home/administrator/rpmbuild/BUILD
+ cd httpd-2.4.18
+ DOCDIR=/home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/share/doc/httpd-2.4.18
+ export DOCDIR
+ /usr/bin/mkdir -p /home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/share/doc/httpd-2.4.18
+ cp -pr ABOUT_APACHE /home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/share/doc/httpd-2.4.18
+ cp -pr README /home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/share/doc/httpd-2.4.18
+ cp -pr CHANGES /home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/share/doc/httpd-2.4.18
+ cp -pr LICENSE /home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/share/doc/httpd-2.4.18
+ cp -pr NOTICE /home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/share/doc/httpd-2.4.18
+ exit 0


RPM build errors:
    File not found: /home/administrator/rpmbuild/BUILDROOT/httpd-2.4.18-1.x86_64/usr/lib64/httpd/modules/mod_mpm_event.so

根据this question,问题与apr版本有关。由于缺乏依赖性,早期的构建失败,最小apr版本是:

error: Failed build dependencies:
    apr-devel >= 1.4.0 is needed by httpd-2.4.18-1.x86_64
    apr-util-devel >= 1.4.0 is needed by httpd-2.4.18-1.x86_64

我安装了以下版本:

yum info apr-devel | grep Version
Version     : 1.4.8

yum info apr-util-devel | grep Version
Version     : 1.5.2

有人可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

所以我猜apr-devel和apr-util-devel包中的不匹配是导致问题的原因。从源代码构建apr-1.5.2 RPM并升级CentOS修复此问题的版本。

下一个问题,更让我沉思的是,依赖于apr和apr-util的所有软件包是否都是这种情况?如果是这样,为什么官方CentOS回购每个版本都有不同的版本?