You are not logged in.
I'm trying to get a tcl script running. The script requires htmlparse.tcl which I have found. That script requires at least one other. So I might end up with a handful of .tcl files. My question is: where in the Arch file hierarchy would I put those files so they are found magically.
I looked at some PKGFILES but found no clue there. There are some .tcl files in /usr/lib/tcl8,5 but that doesn't feel correct.
Last edited by foppe (2012-10-24 20:45:41)
Offline
Tcl loads its packages from $auto_path; see Tcl/Tk wiki for more info, but it's /usr/lib/tcl8.5 /usr/lib on Arch by default (to be more precise, it scans all subdirectories of $auto_path elements for file pkgIndex.tcl; and that's why I think that /usr/lib in $auto_path is a bad idea). You can modify it in your script, .tclshrc or TCLLIBPATH environment variable.
Offline
Thanks a lot. That got me going.
I found all files I needed in packages tcllib and tls, which install in /usr/lib/tcllib (and /usr/lib/tls?). This is probably why the $auto_path is set to /usr/lib
Offline