Open rpandassociates opened 7 years ago
Create a file named "macros.apache2" on the directory "/etc/rpm/".
Insert into the file:
%_httpd_mmn 20120211x8664
%_httpd_apxs /usr/bin/apxs
%_httpd_dir /etc/apache2
%_httpd_bindir %{_httpd_dir}/bin
%_httpd_modconfdir %{_httpd_dir}/conf.modules.d
%_httpd_confdir %{_httpd_dir}/conf.d
%_httpd_contentdir /usr/share/apache2
%_httpd_moddir /usr/lib64/apache2/modules
Then, try to install again.
[root@server ~]# rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.P7CcgO
RPM build errors: File must begin with "/": %{_httpdmoddir}/.so File must begin with "/": %{_httpdmodconfdir}/.conf [root@server ~]#