Gentle persons:
In a previous message, I mentioned a "package require LInuxcnc" error
message that stumped me for a bit last night.
Let me elaborate.
Running Michael's distribution on my BeagleBone Black. When I logged in
last night, it helpfully reported "environment set up for
linuxcnc-pru-emcweb" which reflects what I had been doing previously.
This time, however, I wanted to do an experiment with TkLinuxCNC, so I
cd'ed to linuxcnc-master, sourced rip-environment, and started LinuxCNC.
>From the selector menu, I chose "sim/tklinuxcnc/tklinuxcnc".
Sigh, I got back
---snip---
LINUXCNC - 2.6.0~pre
Machine configuration directory is
'/home/linuxcnc/linuxcnc-master/configs/sim/tklinuxcnc'
Machine configuration file is 'tklinuxcnc.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
task pid=4813
emcTaskInit: using builtin interpreter
Error in startup script: can't find package Linuxcnc
while executing
"package require Linuxcnc"
(file "/home/linuxcnc/linuxcnc-master/tcl/tklinuxcnc.tcl" line 21)
Shutting down and cleaning up LinuxCNC...
Cleanup done
---snip---
Neither LinuxCNC diagnostic file provided useful information.
Curious, sez I, the tcl program providing the selector menu functionality
had already used the same file (proof: the tcl program fails if I hide the
file). What's up with that?
To make a long story short, the fault lay in the TCLLIBPATH environment
variable. After I logged in,
TCLLIBPATH=/home/linuxcnc/linuxcnc-pru-emcweb/tcl
After I sourced rip-environment,
TCLLIBPATH=/home/linuxcnc/linuxcnc-master/tcl:/home/linuxcnc/linuxcnc-pru-emcweb/tcl
A quick read of rip-environment confirms that it prepends to the path.
Now I'm a complete doofus when it comes to tk/tcl and I have no clue it
discovers packages but if I change to
TCLLIBPATH=/home/linuxcnc/linuxcnc-master/tcl
everything works hunkydory.
Regards,
Kent
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers