Tk-8.4.11

Introduction to Tk

The Tk package contains a TCL GUI Toolkit.

Package Information

Tk Dependencies

Required

X (XFree86-4.5.0 or X.org-6.8.2) and Tcl-8.4.11

Installation of Tk

Install Tk by running the following commands:

export VERSION=8.4.11 &&
export V=`echo $VERSION | cut -d "." -f 1,2` &&
export DIR=$PWD &&
cd unix &&
./configure --prefix=/usr --enable-threads &&
make &&
sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh

The test is not recommended. Some tests may crash your X Server. To test the results, issue: make test. Ensure you run it from an X Window display device with the GLX extensions loaded, else the tests will hang.

Now, as the root user:

make install &&
install -v -d /usr/include/tk${V}/unix &&
install -v -m644 *.h /usr/include/tk${V}/unix/ &&
install -v -d /usr/include/tk${V}/generic &&
install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
ln -v -sf libtk${V}.so /usr/lib/libtk.so &&
ln -v -sf wish${V} /usr/bin/wish

Clean up the unprivileged user's environment using the following commands:

unset VERSION &&
unset V &&
unset DIR

Command Explanations

--enable-threads: This switch forces the package to build with thread support.

sed -i ...: The Tk package assumes that the source used to build Tk is always kept around for compiling packages that depend on Tk. These seds remove the reference to the build directory and replace them by saner system-wide locations.

install ...: These commands install the internal headers into a system-wide location.

ln -v -sf ...: These commands create compatibility symbolic links.

Contents

Installed Programs: wish and wish8.4
Installed Libraries: libtk.so and libtkstub8.4.a
Installed Directories: /usr/include/tk8.4 and /usr/lib/tk8.4

Short Descriptions

wish

is a symlink to the wish8.4 program.

wish8.4

is a simple shell containing the Tk toolkit that creates a main window and then processes Tcl commands.

libtk.so

contains the API functions required by Tk.

Last updated on 2005-08-01 13:29:19 -0600