cannot create regular file '/lib/systemd/system/xdm.service': Permission denied

Peter Hutterer peter.hutterer at who-t.net
Wed Oct 14 15:49:17 PDT 2015


On Wed, Oct 14, 2015 at 11:50:23AM -0400, dclarke at blastwave.org wrote:
> 
> 
> Everything was going smoothly in my build process until, for some
> reason, an attempt was made to reach into the OS area and touch things
> under /lib.  Well that should be a no no as I am not building as the
> root user and I want everything safely in /opt/xorg. 
> 
> So I probably missed a step somewhere ? 

./configure --with-systemdsystemunitdir=/path/to/wherever ...

Cheers,
   Peter

> 
> 
> ----------------------------------------------------------------------
> Libraries have been installed in:
>    /opt/xorg/lib/X11/xdm
> 
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
>    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>      during execution
>    - add LIBDIR to the `LD_RUN_PATH' environment variable
>      during linking
>    - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
>    - have your system administrator add LIBDIR to `/etc/ld.so.conf'
> 
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
> make[2]: Leaving directory '/home/dclarke/xorg/app/xdm/greeter'
> make[1]: Leaving directory '/home/dclarke/xorg/app/xdm/greeter'
> Making install in include
> make[1]: Entering directory '/home/dclarke/xorg/app/xdm/include'
> make[2]: Entering directory '/home/dclarke/xorg/app/xdm/include'
> make[2]: Nothing to be done for 'install-exec-am'.
> make[2]: Nothing to be done for 'install-data-am'.
> make[2]: Leaving directory '/home/dclarke/xorg/app/xdm/include'
> make[1]: Leaving directory '/home/dclarke/xorg/app/xdm/include'
> Making install in man
> make[1]: Entering directory '/home/dclarke/xorg/app/xdm/man'
> make[2]: Entering directory '/home/dclarke/xorg/app/xdm/man'
> make[2]: Nothing to be done for 'install-exec-am'.
>  /bin/mkdir -p '/opt/xorg/share/man/man1'
>  /usr/bin/install -c -m 644 xdm.1 '/opt/xorg/share/man/man1'
> make[2]: Leaving directory '/home/dclarke/xorg/app/xdm/man'
> make[1]: Leaving directory '/home/dclarke/xorg/app/xdm/man'
> Making install in xdm
> make[1]: Entering directory '/home/dclarke/xorg/app/xdm/xdm'
> make[2]: Entering directory '/home/dclarke/xorg/app/xdm/xdm'
>  /bin/mkdir -p '/opt/xorg/bin'
>   /bin/bash ../libtool   --mode=install /usr/bin/install -c xdm
> '/opt/xorg/bin'
> libtool: install: /usr/bin/install -c xdm /opt/xorg/bin/xdm
> make[2]: Nothing to be done for 'install-data-am'.
> make[2]: Leaving directory '/home/dclarke/xorg/app/xdm/xdm'
> make[1]: Leaving directory '/home/dclarke/xorg/app/xdm/xdm'
> Making install in xdmshell
> make[1]: Entering directory '/home/dclarke/xorg/app/xdm/xdmshell'
> make[2]: Entering directory '/home/dclarke/xorg/app/xdm/xdmshell'
> make[2]: Nothing to be done for 'install-data-am'.
> make[2]: Leaving directory '/home/dclarke/xorg/app/xdm/xdmshell'
> make[1]: Leaving directory '/home/dclarke/xorg/app/xdm/xdmshell'
> make[1]: Entering directory '/home/dclarke/xorg/app/xdm'
> make[2]: Entering directory '/home/dclarke/xorg/app/xdm'
> make[2]: Nothing to be done for 'install-exec-am'.
>  /bin/mkdir -p '/lib/systemd/system'
>  /usr/bin/install -c -m 644 xdm.service '/lib/systemd/system'
> /usr/bin/install: cannot create regular file
> '/lib/systemd/system/xdm.service': Permission denied
> Makefile:526: recipe for target 'install-systemdsystemunitDATA' failed
> make[2]: *** [install-systemdsystemunitDATA] Error 1
> make[2]: Leaving directory '/home/dclarke/xorg/app/xdm'
> Makefile:857: recipe for target 'install-am' failed
> make[1]: *** [install-am] Error 2
> make[1]: Leaving directory '/home/dclarke/xorg/app/xdm'
> Makefile:554: recipe for target 'install-recursive' failed
> make: *** [install-recursive] Error 1
> build.sh: " env LD_LIBRARY_PATH=/opt/xorg/lib make  install" failed on
> app/xdm
> build.sh: error processing:  "app/xdm"
> 
> 
> Dennis 
> _______________________________________________
> xorg at lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
> 


More information about the xorg mailing list