grotius-cnc / hal-core

cnc and robot realtime controller. runs on a hal kernel module.
GNU General Public License v2.0
43 stars 20 forks source link

HAL: ERROR: version code mismatch #16

Closed jjrbfi closed 3 years ago

jjrbfi commented 3 years ago

I run ./runtest first and worked well.

Now when trying to get a value from a port show:

pi@linuxcnc:/opt/hal-core $ halcmd getp lcec.0.9.slave-state-safeop
HAL: ERROR: version code mismatch
HAL: ERROR: could not init shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
jjrbfi commented 3 years ago

Got working.

The issue is that I have installed LinuxCNC before and the "halcmd" commands that I run from /opt/hal-core/runtest are called from /opt/hal-cmd/bin directory.

And if I do halcmd directly from terminal takes that from /usr/bin/halcmd.