You are viewing a plain text version of this content. The canonical link for it is here.
Posted to packagers@httpd.apache.org by Andreas Behal <ro...@chello.at> on 2006/01/20 12:28:29 UTC
make install error & set different Port in httpd.conf
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:
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
Re: make install error & set different Port in httpd.conf
Posted by Andreas <ro...@chello.at>.
Joe Orton schrieb:
>On Fri, Jan 20, 2006 at 12:28:29PM +0100, Andreas Behal wrote:
>
>
>>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...
>>
>>
>
>That looks like you're using %makeinstall rather than
>
>make install DESTDIR=%RPM_BUILD_ROOT
>
>(the httpd.spec shipped in the tarball seems to get this right, I guess
>you are not using that)
>
>joe
>
>
>
Hi Joe,
thanks loads you're absolutely right. I was so into building RPM's that
I didn't check for a ready-to-use .spec and started writing my own..
thx
Andreas
Re: make install error & set different Port in httpd.conf
Posted by Joe Orton <jo...@redhat.com>.
On Fri, Jan 20, 2006 at 12:28:29PM +0100, Andreas Behal wrote:
> 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...
That looks like you're using %makeinstall rather than
make install DESTDIR=%RPM_BUILD_ROOT
(the httpd.spec shipped in the tarball seems to get this right, I guess
you are not using that)
joe