[Bugs] [Bug 1654778] New: Please update GlusterFS documentation to describe how to do a non-root install

bugzilla at redhat.com bugzilla at redhat.com
Thu Nov 29 16:35:17 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1654778

            Bug ID: 1654778
           Summary: Please update GlusterFS documentation to describe how
                    to do a non-root install
           Product: GlusterFS
           Version: 5
         Component: build
          Severity: low
          Assignee: bugs at gluster.org
          Reporter: brzycki at gmail.com
                CC: bugs at gluster.org



Description of problem:
Building and installing GlusterFS purely as a non-root user requires more
options than './configure --prefix=$HOME/gfs'. It would be helpful to others if
the documentation listed the exact flags needed for non-root builds and
installs.

Version-Release number of selected component (if applicable):
Gluster v5.1 downloaded from Github tag v5.1:
https://github.com/gluster/glusterfs/archive/v5.1.zip

How reproducible:
100%

Steps to Reproduce:
non-root-user $ ./autogen.sh
non-root-user $ ./configure --prefix=$HOME/gfs
non-root-user $ make -j
non-root-user $ make install

Actual results:
make[5]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/sbin'
 /usr/bin/install -c mount.glusterfs '/sbin'
/usr/bin/install: cannot create regular file '/sbin/mount.glusterfs':
Permission denied
Makefile:426: recipe for target 'install-utilSCRIPTS' failed
make[5]: *** [install-utilSCRIPTS] Error 1
Makefile:516: recipe for target 'install-am' failed
make[4]: *** [install-am] Error 2
Makefile:462: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
Makefile:462: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
Makefile:468: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
Makefile:597: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1


Expected results:
make[5]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p "$HOME/gfs/sbin"
 /usr/bin/install -c mount.glusterfs "$HOME/gfs/sbin"
...
# (install success)

Additional info:
I found no documentation online, or in the repository, for the correct number
of steps:

./autogen.sh
./configure \
  --prefix=$HOME/gfs \
  --with-mountutildir=$HOME/gfs/sbin \
  --with-initdir=$HOME/gfs/etc/init.d
make -j
make install

This required me examining Makefile.in and eventually discovering the
hard-codded '/' path prefix for mountutildir and initdir variables.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list