The Tclutil shared library libtclutil.sl (in HPs) or libtclutil.so (on Suns) is built with the same options used to build the Tcl shared library. The options are read from the file tclConfig.sh, which is searched for in the following places:
$prefix/lib/itcl # $prefix is the value of the -prefix $prefix/lib # configure option, default: /usr/local $TCLTK_ROOT/lib/itcl $TCLTK_ROOT/lib /vlt/tcltk/lib/itcl /vlt/tcltk/lib /usr/local/lib/itcl /usr/local/lib
This assumes that you have built and installed Tcl with the same "--enable-shared" and compiler option used for Tclutil.
You may need to modify the SHLIB_PATH (HP) or LD_LIBRARY_PATH (Sun) environment variable so that the necessary shared libraries are found at run time. Both variables have the same format: a colon ":" separated list of directories to search for shared libraries.
From a tcl script you can load the TCLUTIL library dynamically with the command "load <path>/libtclutil.sl" or "load <path>/libtclutil.so" or it can be loaded automatically as a package. See the Tcl man pages for more information.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory