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:
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) \