machinekoder / asciidoc-sandbox

A sandbox for my notes
10 stars 4 forks source link

LINUXCNC_HOME #1

Open muggins opened 10 years ago

muggins commented 10 years ago

I just did a package install on a fresh 'bone-debian-7.6-lxde-armhf-2014-08-05-4gb.img'. Linuxcnc fails to run on it. It fails on this line(39) from the Xylotex.hal file: loadrt PRUCONF prucode=$(LINUXCNC_HOME)/PRUCONF PRUCONF Apparently it expects an environment variable LINUXCNC_HOME to be set.

machinekoder commented 9 years ago

oh I have overseen the comments here

The LINUXCNC_HOME variable is set by the rip-environment script located in /scripts/rip-environment On the BBB with a development image I add following to the .bashrc:

sh -c "echo 'if [ -f ~/machinekit/scripts/rip-environment ]; then\n \ . ~/machinekit/scripts/rip-environment\n \ echo \"Environment set up for running Machinekit and LinuxCNC\"\n \ fi' >> ~/.bashrc"