Re: Packages and Expect
- From: Bezoar <cwjolly@xxxxxxxxx>
- Date: 29 Apr 2007 19:47:11 -0700
On Apr 29, 9:35 pm, "Tom Conner" <tcon...@xxxxxxxxxx> wrote:
I installed ActiveTcl8.4.14.0 and, as usual, it has everything and the
install was painless. However, I have one question regarding packages and
other libs. Everything, except for Expect, I just "package require <package
name>". Expect I use
load <path to expect .so>/libexpect.so
Is there any way to "package require expect" so that I don't have to worry
about the path to the .so file?
use the caplitalized Expect:
package require Expect
If you find you cannot load an extension then check to see if it has a
pkgIndex.tcl file. Usually
this is under one of the directories found in the $auto_path list.
Tcl will look in all the directories in
the auto_path variable recursively for all pkgIndex.tcl files to
determine what the packages are available
and how to load them. Open up expect's pkgIndex.tcl file and you will
see that the package is Expect.
The convention is to use to caplitalize the first Letter.
Carl
.
- References:
- Packages and Expect
- From: Tom Conner
- Packages and Expect
- Prev by Date: Re: Packages and Expect
- Next by Date: Re: Packages and Expect
- Previous by thread: Re: Packages and Expect
- Next by thread: Re: Packages and Expect
- Index(es):
Relevant Pages
|