> On 20 Mar 2017, at 04:17, Brian Schousek <br...@schousek.com> wrote:
> 
> 
> I'm trying to get a basic Machinekit up and running on an older PC. I've 
> apparently successfully installed and started an RT-PREEMPT kernel (see ref 
> 1), properly installed the appropriate machinekit packages (see ref2), and 
> tried to start things up with various configurations. Ref 3 shows a 
> representative error (through iterations I determined that just trying to run 
> 'realtime' yields the same errors as starting the whole package, and errors 
> out much quicker.) My interpretation of ref 3 is that it is trying to run 
> rtapi_posix (not installed) instead of rt-preempt. As can be seen in ref 4 
> there is an executable for rtapi_app_rt-preempt but no rtapi_app_posix so 
> it's no great surprise there is an error in ref 3.
> 
> What simple thing am I missing here? I've been unsuccessful in finding a 
> solution in this forum and on the machinekit website. 

Looks like you forget to 'sudo make setuid' after building machinekit. Go to 
src/ and do that. Then retry.

> 
> 
> Ref 1
> {
> brian@surely:/usr/libexec/linuxcnc⇒  uname -a
> Linux surely 4.1.19-rt22mah #1 SMP PREEMPT RT Tue Mar 15 09:12:20 CET 2016 
> i686 GNU/Linux
> }
> 
> Ref 2
> {
> brian@surely:/usr/libexec/linuxcnc⇒  apt list --installed | grep machine
> machinekit/stable,now 0.1.1489960089-1mk.travis.master.git7df8d183~1jessie 
> i386 [installed,automatic]
> machinekit-dev/stable,now 
> 0.1.1489960089-1mk.travis.master.git7df8d183~1jessie i386 [installed]
> machinekit-rt-preempt/stable,now 
> 0.1.1489960089-1mk.travis.master.git7df8d183~1jessie i386 [installed]
> }
> 
> Ref 3
> {brian@surely:~⇒  sudo realtime start                                         
>                           
> Warning - /usr/libexec/linuxcnc/rtapi_app_posix not setuid
> 'sudo make setuid' missing?
> /usr/bin/realtime: line 111: test: =: unary operator expected
> /usr/bin/realtime: line 174:  4065 Segmentation fault      ${rtapi_msgd} 
> --instance=$MK_INSTANCE $NAME_CMD --rtmsglevel=$DEBUG --usrmsglevel=$DEBUG 
> --halsize=$HAL_SIZE $MSGD_OPTS
> rtapi_msgd startup failed - aborting
> /usr/bin/realtime: line 192: /usr/libexec/linuxcnc/rtapi_app_posix: No such 
> file or directory
> rtapi_app startup failed - aborting
> halcmd: cant connect to rtapi_app: -1 (uri= 
> uuid=a42c8c6b-4025-4f83-ba28-dad21114744a): rtapi_rpc(): reply timeout
> 
> halcmd: the rtapi:0 RT demon is not running - please investigate 
> /var/log/linuxcnc.log
> halcmd: the msgd:0 logger demon is not running - please investigate 
> /var/log/linuxcnc.log
> }
> 
> Ref 4
> {
> brian@surely:~⇒  ls /usr/libexec/linuxcnc  -l                                 
>                          
> total 200
> -rwxr-xr-x 1 root root  14888 Mar 19 17:52 flavor
> -rwxr-xr-x 1 root root   5960 Mar 19 17:52 inivar
> -rwxr-xr-x 1 root root  14268 Mar 19 17:52 pci_read
> -rwxr-xr-x 1 root root  14288 Mar 19 17:52 pci_write
> -rwsr-xr-x 1 root root 101368 Mar 19 17:52 rtapi_app_rt-preempt
> -rwxr-xr-x 1 root root  43960 Mar 19 17:52 rtapi_msgd
> }
> -- 
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
> https://github.com/machinekit
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to machinekit+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to