Re: Packages and Expect



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

.



Relevant Pages

  • Re: Error reading delimited list
    ... Likewise in LOAD, the usual thing I do in all of my programs that want ... load does not prevent to load-time code from modifying the package ... advocating a terrible programming style by doing this. ... It's good to understand the power at one's fingertips. ...
    (comp.lang.lisp)
  • Re: Failure integrating .NET GPL version of GNAT into Visual Studio 2005
    ... I get a package load failure error ... For assistance, contact the package vendor. ... It took a bit of hacking on the .reg file, but I got VS to start. ...
    (comp.lang.ada)
  • Re: Package: symbol reading woes
    ... The Lisp package system is not ... I'm not too worried about pollution. ... forms successively -- the only way to do that might be to use LOAD. ...
    (comp.lang.lisp)
  • Re: unload and "make clean" an asdf system?
    ... I'm installing new application with many dependencies. ... I want to undo load and load other version with minimal ... with a stable set of base systems ... or package, you can easily and quickly reload from the saved image. ...
    (comp.lang.lisp)
  • Re: I just wanna know about os.path module..
    ... Occasionally you will find packages that require you to load ... whereas a "package" is a directory of source files which are ... set up to load like a single module. ... Terry Hancock ...
    (comp.lang.python)