httpd-packagers mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Behal <>
Subject make install error & set different Port in httpd.conf
Date Fri, 20 Jan 2006 11:28:29 GMT
Hi guys,

I just donloaded the httpd-2.2.0.tar.gz and am trying to build a RPM on 
(firewalled version of Redhat 7.3)- Linux for i386-arch.
(RPM-version 4.0.4)

maybe anyone can help me with this poblem:

I'm setting _prefix to /usr/local/apache2 in my http-SPEC-file, and when 
rpmbuild comes to "make install" stage it executes the following call, 
BUT the install procedure tries to "mkdir 
/usr/local/apache2/share/build" instead of the prefixed 
"/var/tmp/httpd-root/usr/local/apache2/share/build" and dies because of 
lacking rights to do so...

Any ideas how to overcome this?

heres the log:

+ make prefix=/var/tmp/httpd-root/usr/local/apache2 
infodir=/var/tmp/httpd-root/usr/local/apache2/share/info install --silent
Making install in srclib
Making install in apr
mkdir /var/tmp/httpd-root
mkdir /var/tmp/httpd-root/usr
mkdir /var/tmp/httpd-root/usr/local
mkdir /var/tmp/httpd-root/usr/local/apache2
mkdir /var/tmp/httpd-root/usr/local/apache2/lib
mkdir /var/tmp/httpd-root/usr/local/apache2/bin
mkdir /usr/local/apache2
mkdir: cannot create directory `/usr/local/apache2': Permission denied
mkdir /usr/local/apache2/share
mkdir: cannot create directory `/usr/local/apache2/share': No such file 
or directory
mkdir /usr/local/apache2/share/
mkdir: cannot create directory `/usr/local/apache2/share/build': No such 
file or directory
mkdir /var/tmp/httpd-root/usr/local/apache2/lib/pkgconfig
mkdir /var/tmp/httpd-root/usr/local/apache2/include
make[2]: *** [install] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.299 (%install)

and something different:

I want to make an RPM-package that e.g. starts http at port 81 instead 
of 80. What I tried to do is patch the following file:
--- build/mkconfNW.awk.orig     Wed Jan 18 12:22:29 2006
+++ build/mkconfNW.awk  Wed Jan 18 12:22:34 2006
@@ -16,14 +16,14 @@

     A["ServerRoot"] = "SYS:/APACHE2"
-    A["Port"] = "80"
+    A["Port"] = "81"
     A["cgidir"] = "cgi-bin"
-    A["logfiledir"] = "logs"
+    A["logfiledir"] = "log"
     A["htdocsdir"] = "htdocs"
     A["sysconfdir"] = "conf"
     A["iconsdir"] = "icons"
     A["manualdir"] = "manual"
-    A["runtimedir"] = "logs"
+    A["runtimedir"] = "log"
     A["errordir"] = "error"
     A["proxycachedir"] = "proxy"

But after I install the RPM the httpd.conf still has 80 in there... 
Where the heck is this taken from? I just can't figure it out ? (same 
applies to "logs" which I want to replace with "log")..

Any hint would be appreciated..

I can do some shell scripts and makefiles basics but "apache-make 
construct" is too hard to understand for me ..

best regards


View raw message