I have:
#!/usr/bin/env tclsh
package require Tcldot
I get:
can't find package Tcldot
while executing
"package require Tcldot"
(file "./clgraphs.tcl" line 3)
I have libtcldot.so and libtcldot_builtin.so on my system, I suppose
they're not being found.
Can anyone give some diagnostic steps I can use to understand why?
eg, an environment variable that shows the package search actions,
failures, and fallbacks, and other things like that?
strace -o tf /path/to/tclshFor anybody else using this method, the strace option arguments -e file restricts the contents of "tf" to file-related syscalls:
then look at the output file "tf" for stuff like "access", "stat" or "open"
If it's not looking in the right places you can add the correct directory
to the Tcl list variable "auto_path".
Hi Folks,
I have:
#!/usr/bin/env tclsh
package require Tcldot
I get:
can't find package Tcldot
while executing
"package require Tcldot"
(file "./clgraphs.tcl" line 3)
I have libtcldot.so and libtcldot_builtin.so on my system, I suppose
they're not being found.
Can anyone give some diagnostic steps I can use to understand why?
eg, an environment variable that shows the package search actions,
failures, and fallbacks, and other things like that?
--
Tristan Wibberley
The message body is Copyright (C) 2025 Tristan Wibberley except
citations and quotations noted. All Rights Reserved except that you may,
of course, cite it academically giving credit to me, distribute it
verbatim as part of a usenet system or its archives, and use it to
promote my greatness and general superiority without misrepresentation
of my opinions other than my opinion of my greatness and general
superiority which you _may_ misrepresent. You definitely MAY NOT train
any production AI system with it but you may train experimental AI that
will only be used for evaluation of the AI methods it implements.
Hi Tristan,
thanks for the message.
The normal procedure is:
all pckIndex.tcl in all folders of the variable auto_path are sourced.
* Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk>I've filled my head with so many things I've started using a restricted selection of more general expressions.
| set auto_path \
| [list {*}$auto_path /usr/lib/x86_64-linux-gnu/graphviz/tcl/]
lappend auto_path /usr/lib/x86_64-linux-gnu/graphviz/tcl/
On 03/11/2025 11:35, Ralf Fassel wrote:
* Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk>I've filled my head with so many things I've started using a restricted selection of more general expressions.
| set auto_path \
| [list {*}$auto_path /usr/lib/x86_64-linux-gnu/graphviz/tcl/]
lappend auto_path /usr/lib/x86_64-linux-gnu/graphviz/tcl/
How does lappend compare for speed?
What are the general rules regarding that for tcl, and if "check documentation" is an important part then what tools are there to
integrate with editors that show relevant options and their speed comparisons?
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,089 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 153:54:01 |
| Calls: | 13,921 |
| Calls today: | 2 |
| Files: | 187,021 |
| D/L today: |
3,760 files (944M bytes) |
| Messages: | 2,457,163 |