I would like to know which extensions do i have installed for the tcl
interpreter I have. what command to type or what correct path to look
in.
thanks in advance.
Type "package names".
thank you Aric,
it worked fine. But how about the paths of those extensions? I can't
find them in the lib directory.
The $auto_path variable contains the list of directories whose
subdirectories Tcl searches for packages.
Aric
any help?
$auto_path is a tcl variable, not an environment variable. Fire up
tclsh and type in "puts $auto_path" to see its value.
You have to do it from the TCL shell:
puts $auto_path
---Victor
More deeply, you can do:
package ifneeded packageName [package require packageName]
This will tell you exactly how and from where to install
a given package. Usually this is straight-forward but some
packages install in bizarre ways.
Keith
I tried "package ifneeded packageName [package require packageName]",
but i received an error from the package require because it can't find
the packageName.
To be more precise, I tried including the "struct" package and the
"math::interpolate" package, but I don't know from where to download
them!!
yes... i realized this also, but i don't know why it happens???
thanks
aggregated package information:
http://www.tcl.tk/software/
http://www.flightlab.com/~joe/gutter/browse.html
upwards:
you have to require the package version that has
the features you need ( if they have been added in
a later version )
downwards:
during load packages are supposed to check if the
tcl/tk version and other required packages present
are "good enough".
uwe
Hi uwe,
Could you clarify more, please? I couldn't get a full image of what
you meant.
Thanks in advance.
> Could you clarify more, please? I couldn't get a full image of what
> you meant.
>
> Thanks in advance.
Could you point out the white places?
uwe
what do you mean by "white" places?
The white places in your minds image.
What in my answer did you not understand?
uwe
Type the following:
$ tclsh
% package require NotThere
can't find package NotThere
% lsort [package names]
% lsort [package names]
BWidget Diagrams Dotsh Expect Img Itcl Itk Iwidgets Memchan Oratcl
Oratcl::utils Plotchart SASL SASL::NTLM SASL::XGoogleToken Tablelist
Tablelist_tile Tcl Tclsha1 Tclx Thread Tk Tkhtml Tktable Trf Ttrace
aes asn autoproxy autoscroll base32 base32::core base32::hex base64
bee bench bench::in bench::out::csv bench::out::text bibtex blowfish
chatwidget cksum cmdline comm control counter crc16 crc32 csv ctext
cursor datefield des
and so forth.
What you see will be dependant on what you have installed.
You might take a look into TkMan . I've used it on Unix systems in the
past to browse installed documentation. Unfortunately, there may be
cases where you don't have the man pages for the extensions you have
on your system.
Three cases where this can come up - 1) tclkit type interpreters, 2)
ActiveTcl with extra packages installed via teacup, 3) extensions
which only provide their docs in some form other than man pages.
In these cases, if you have access to the internet, web search engines
as well as http://wiki.tcl.tk/ can frequently help. If you do not have
access to the internet, then help figuring out how to use the package
may be a bit challenging.
Right now, the best help for you along these lines is ActiveTcl and
its "teacup" command. It interacts with a central database containing
many (on some platforms, over 400) extensions. Interacting with teacup
gives you the potential to install extensions already built.
If you read up on teacup, you will find there is also the ability to
have teacup "describe" an extension, and often the information about
dependencies and web home are stored in the metadata for the
extension.
If you can't find the information on the wiki, or via teacup, then ask
for specifics here and often people will be able to help.