
# copy tcl8.5.18, tk8.5.18 source tarfiles into this directory

# untar, compile tcl from source
tar xvfz tcl8.5.18-src.tar.gz
pushd tcl8.5.18/unix
./configure
make
popd

# untar, compile tk from source
tar xvfz tk8.5.18-src.tar.gz
pushd tk8.5.18/unix
./configure
make
popd

# tcsh: set up to use just compiled (without install)
setenv TCL_LIBRARY ./tcl8.5.18/library
setenv TK_LIBRARY ./tk8.5.18/library
setenv LD_LIBRARY_PATH ./tcl8.5.18/unix:./tk8.5.18/unix
setenv DYLD_LIBRARY_PATH ./tcl8.5.18/unix:./tk8.5.18/unix
set path = (./tcl8.5.18/unix ./tk8.5.18/unix $path)

# bash: set up to use just compiled (without install)
export TCL_LIBRARY=./tcl8.5.18/library
export TK_LIBRARY=./tk8.5.18/library
export LD_LIBRARY_PATH=./tcl8.5.18/unix:./tk8.5.18/unix
export DYLD_LIBRARY_PATH=./tcl8.5.18/unix:./tk8.5.18/unix
export PATH=./tcl8.5.18/unix:./tk8.5.18/unix:$PATH

# compile the tiny.c program, using above
gcc tiny.c -I/opt/X11/include -I./tcl8.5.18/generic -I./tk8.5.18/generic -lX11 -L/opt/X11/lib -L./tcl8.5.18/unix -L./tk8.5.18/unix -ltcl8.5 -ltk8.5 -o tiny

# run it, then type in the entries
tiny

# in 8.5.18
tk::entry  => type bare '-' => OK
ttk::entry => type bare '-' => Application Error

