incubator-pagespeed-cpanel icon indicating copy to clipboard operation
incubator-pagespeed-cpanel copied to clipboard

apache 4 cant install

Open rpandassociates opened this issue 8 years ago • 1 comments

[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

  • umask 022
  • cd /root/rpmbuild/BUILD
  • wget -q -N -O mod-pagespeed-stable.rpm https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
  • exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2ppv9e
  • umask 022
  • cd /root/rpmbuild/BUILD
  • rpm2cpio mod-pagespeed-stable.rpm
  • cpio -idmv cpio: ./etc/cron.daily/mod-pagespeed not created: newer or same age version exists ./etc/cron.daily/mod-pagespeed cpio: ./etc/httpd/conf.d/pagespeed.conf not created: newer or same age version exists ./etc/httpd/conf.d/pagespeed.conf cpio: ./etc/httpd/conf.d/pagespeed_libraries.conf not created: newer or same age version exists ./etc/httpd/conf.d/pagespeed_libraries.conf cpio: ./usr/bin/pagespeed_js_minify not created: newer or same age version exists ./usr/bin/pagespeed_js_minify ./usr/lib64/httpd/modules/mod_pagespeed.so ./usr/lib64/httpd/modules/mod_pagespeed_ap24.so ./var/cache/mod_pagespeed ./var/log/pagespeed 36336 blocks
  • mv usr/lib64/httpd/modules/mod_pagespeed.so usr/lib64/httpd/modules/mod_pagespeed_ap24.so .
  • /usr/bin/strip -g mod_pagespeed.so
  • /usr/bin/strip -g mod_pagespeed_ap24.so
  • exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.TPIBtI
  • umask 022
  • cd /root/rpmbuild/BUILD
  • '[' /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64 '!=' / ']'
  • rm -rf /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64 ++ dirname /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
  • mkdir -p /root/rpmbuild/BUILDROOT
  • mkdir /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
  • rm -rf /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
  • mkdir -p '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}'
  • install -m755 mod_pagespeed.so '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}/'
  • install -m755 mod_pagespeed_ap24.so '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}/'
  • mkdir -p '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_modconfdir}'
  • install -m 644 /root/rpmbuild/SOURCES/456_pagespeed.conf '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_modconfdir}/'
  • /usr/lib/rpm/check-buildroot find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
  • /usr/lib/rpm/redhat/brp-compress /usr/lib/rpm/redhat/brp-compress: line 8: cd: /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64: No such file or directory
  • /usr/lib/rpm/redhat/brp-strip /usr/bin/strip find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
  • /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
  • /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
  • /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory Can't list /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
  • /usr/lib/rpm/redhat/brp-python-hardlink find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
  • /usr/lib/rpm/redhat/brp-java-repack-jars find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory Processing files: ea-apache24-mod_pagespeed-latest-stable.x86_64 error: File must begin with "/": %{httpd_moddir}/.so error: File must begin with "/": %{httpd_modconfdir}/.conf

RPM build errors: File must begin with "/": %{httpd_moddir}/.so File must begin with "/": %{httpd_modconfdir}/.conf [root@server ~]#

rpandassociates avatar Sep 15 '16 20:09 rpandassociates

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.

ntorga avatar Nov 18 '16 22:11 ntorga