Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

make install error & set different Port in httpd.conf

From: Andreas Behal <rotenturm(at)chello.at>
Date: Fri Jan 20 2006 - 06:28:29 EST


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 exec_prefix=/var/tmp/httpd-root/usr/local/apache2 bindir=/var/tmp/httpd-root/usr/local/apache2/bin sbindir=/var/tmp/httpd-root/usr/local/apache2/sbin sysconfdir=/var/tmp/httpd-root/etc
datadir=/var/tmp/httpd-root/usr/local/apache2/share

includedir=/var/tmp/httpd-root/usr/local/apache2/include 
libdir=/var/tmp/httpd-root/usr/local/apache2/lib 
libexecdir=/var/tmp/httpd-root/usr/local/apache2/libexec 
localstatedir=/var/tmp/httpd-root/var
sharedstatedir=/var/tmp/httpd-root/usr/local/apache2/com mandir=/var/tmp/httpd-root/usr/local/apache2/share/man 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:

Do you need help?X

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 @@
 BEGIN {

     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

Andreas Received on Fri Jan 20 11:28:59 2006

This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:54:09 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library