LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.78k stars 1.14k forks source link

patch for lib/linuxcnc when building for non-run-in-place #1418

Open mnarigon opened 2 years ago

mnarigon commented 2 years ago

Building master branch on linux configured with prefix (non-run-in-place) ''' cd src ./autogen.sh ./configure --with-prefix=/opt/linuxcnc --with-realtime=/usr/realtime make sudo make setuid sudo make install '''

the halrun.in script template expects the realtime script to be installed in $prefix/lib/linuxcnc/realtime. However, the install-dirs target in the Makefile doesn't create the /lib/linuxcnc directory with respect to the prefix so the install fails.

The patch is to create the /lib/linuxcnc directory with respect to the prefix. The patch is as follows:

''' diff --git a/src/Makefile b/src/Makefile index f37812228..482097fa4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -613,7 +613,7 @@ install: install-kernel-dep install-kernel-indep install-dirs: $(DIR) $(DESTDIR)$(EMC2_RTLIB_DIR) \ $(DESTDIR)$(sysconfdir)/linuxcnc $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) \

mnarigon commented 2 years ago

linuxcnc-003.txt