Bug 761789 (GLUSTER-57)

Summary: install error for unprivileged user
Product: [Community] GlusterFS Reporter: Basavanagowda Kanur <gowda>
Component: scriptsAssignee: Harshavardhana <fharshav>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: cww, gluster-bugs, gowda
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Basavanagowda Kanur 2009-06-25 04:19:20 UTC
[Migrated from savannah BTS] - bug 26258 [https://savannah.nongnu.org/bugs/?26258]



Mon 20 Apr 2009 11:18:40 PM GMT, original submission by Anonymous:

./configure --prefix=/usr/local/glusterfs-2.0.0rc7
make ; make install

fails with

make[5]: Entering directory `/var/tmp/glusterfs-2.0.0rc7/xlators/mount/fuse/utils'
make[5]: Nothing to be done for `install-exec-am'.
test -z "/sbin" || mkdir -p -- "/sbin"
/usr/bin/install -c 'mount.glusterfs' '/sbin/mount.glusterfs'
/usr/bin/install: cannot remove `/sbin/mount.glusterfs': Permission denied
make[5]: *** [install-utilSCRIPTS] Error 1
make[5]: Leaving directory `/var/tmp/glusterfs-2.0.0rc7/xlators/mount/fuse/utils'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory `/var/tmp/glusterfs-2.0.0rc7/xlators/mount/fuse/utils'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/var/tmp/glusterfs-2.0.0rc7/xlators/mount/fuse'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/glusterfs-2.0.0rc7/xlators/mount'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/glusterfs-2.0.0rc7/xlators'
make: *** [install-recursive] Error 1

since i don't have permission to write to /sbin, and
xlators/mount/fuse/utils/Makefile sets

utildir = $(destdir)/sbin

but destdir is not set to anything. i think destdir should be set to the eprefix specified by the configure script (which defaults to prefix).

--------------------------------------------------------------------------------
Tue 28 Apr 2009 11:11:43 PM GMT, comment #1 by 	Anonymous:

this happens in rc9 too. one might think it isn't really a problem since one doesn't normally try and install gluster without root privileges. but that is not true. i want to install multiple copies of gluster on the same machine for testing. i want to install everything into /usr/local/glusterfs-2.0.0rc7 or /usr/local/glusterfs-2.0.0rc9 as an unprivileged user, and not have /sbin/mount.glustfs overwritten.

--------------------------------------------------------------------------------
Wed 29 Apr 2009 02:21:13 AM GMT, comment #2 by 	Amar Tumballi <amarts>:

run ./configure --with-mountutildir=/different/path/ and your make should succeed.

--------------------------------------------------------------------------------
Wed 29 Apr 2009 10:33:01 PM GMT, comment #3 by Anonymous:

thanks Amar that worked fine. it also craps out trying to install the init.d script:

make[3]: Entering directory `/var/tmp/gluster-2.0.0rc9/extras/init.d'
mkdir -p -- /etc/init.d
/usr/bin/install -c ../../extras/init.d/glusterfsd-Redhat /etc/init.d/glusterfsd
/usr/bin/install: cannot create regular file `/etc/init.d/glusterfsd': Permission denied

i hunted high and low in the configure script but can't see any flags. also i promise this is the last problem, i manually fix it and everything else is fine.