Prev Up (Under construction)

Tcl/Tk

Tool Command Language (Tcl) is an embeddable and extensible interpreted language.
Tk is a GUI toolkit for Tcl.

Compilation (V8.5.9)

Straightforward as described in unix/README:
  1. Run the configure script, e.g.
       cd unix
       ./configure CC=cc CFLAGS="-O2 -qcpluscmt" --disable-shared --enable-man-symlinks --prefix=/tmp/tcl-8.5.9   # for native C compiler
       ./configure CC=cc CFLAGS="-O2 -qcpluscmt" --disable-shared --enable-man-symlinks --prefix=/tmp/tk-8.5.9    # for native C compiler
    
  2. compile and install
    make
    make test
    make install
    

Compilation (V8.6.1)

Straightforward as described in unix/README.
  1. Looks like Tk depends on Tcl, so this has to come first:
       make distclean
       cd unix
       ./configure CC=cc CFLAGS="-O2 -qcpluscmt" --disable-shared --enable-man-symlinks --prefix=/tmp/tcl-8.6.1   # for native C compiler
       make
       make test
       make install
    
  2. Tk looks for Tcl in ../../tclxxx,
       ./configure CC=cc CFLAGS="-O2 -qcpluscmt"                --disable-shared --enable-man-symlinks --prefix=/tmp/tk-8.6.1    # for native C compiler
    # or:
       ./configure CC=cc CFLAGS="-O2 -qcpluscmt" --with-tcl=DIR --disable-shared --enable-man-symlinks --prefix=/tmp/tk-8.6.1    # for native C compiler
       make
       make test    # confusing: quite a few tests are reported to have failed, but the summary tells it's OK  
       make install
    

Installation/Configuration

tcl wants a startup file init.tcl. If it's installed in a non-standard location, put e.g.
   export TCL_LIBRARY=/bio/local/tcl-8.6.1/lib/tcl8.6
into some central startup script.
Some additional links are convenient:
   cd tcl_installation_directory/bin
   ln -s tclsh8.6 tcl
   cd tk_installation_directory/bin
   ln -s wish8.6 wish

Last updated: Thu, Mar 6, 2014 09:11:28 PM , M.Kraemer

Impressum Data privacy protection