apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <...@apache.org>
Subject [BUG] 'install' Makefile target requires write access to source directory
Date Tue, 07 Feb 2006 18:38:16 GMT
APR's 'install' target requires write access to the source directory
(non-VPATH build).  This is problematic when running the 'install'
target as an user who doesn't have write permission to the source

Consider this example of trying to install a build of httpd (with
in-tree APR/Util) as 'root' (via 'sudo'), with your source directory
under your NFS-mounted home directory:

httpd$ sudo make install
Making install in srclib
make[1]: Entering directory `/home/dlr/src/httpd/srclib'
Making install in apr
make[2]: Entering directory `/home/dlr/src/httpd/srclib/apr'
running 'apr-config.out' rule from '/home/dlr/src/httpd/srclib/apr'
sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
/bin/sh: line 1: apr-config.out: No such file or directory
make[2]: *** [apr-config.out] Error 1
make[2]: Leaving directory `/home/dlr/src/httpd/srclib/apr'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/dlr/src/httpd/srclib
make: *** [install-recursive] Error 1

Local 'root' cannot write to my NFS-mounted home directory, and thus
can't perform the install into the OS.  This is quite annoying, and
was also quite puzzling (thanks to Garrett Rooney for figuring out
what was going on).

Work arounds:

o Move your source tree to a non NFS-mounted location.

o chown/chmod your destination directory so it's writable by your own
UID, then perform the 'install' as yourself (and chown/chmod back).

View raw message