The Tk package contains a TCL GUI Toolkit.
Download (HTTP): http://prdownloads.sourceforge.net/tcl/tk8.4.9-src.tar.gz
Download (FTP): ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk8.4.9-src.tar.gz
Download MD5 sum: 1b64258abaf258e9a86f331d8de17a71
Download size: 3.2 MB
Estimated disk space required: 26 MB
Estimated build time: 0.40 SBU
X (XFree86-4.4.0 or X.org-6.8.2) and Tcl-8.4.9
Install Tk by running the following commands:
export VERSION=8.4.9 &&
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
Now, as the root user:
make install &&
install -d /usr/include/tk${V}/unix &&
install -m644 *.h /usr/include/tk${V}/unix/ &&
install -d /usr/include/tk${V}/generic &&
install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
ln -sf libtk${V}.so /usr/lib/libtk.so &&
ln -sf wish${V} /usr/bin/wish
Clean up the unprivileged user's environment using the following commands:
unset VERSION &&
unset V &&
unset DIR
--enable-threads: This switch forces the package to build with thread support.
sed -i ...: The Tk package assumes that the source that is used to build Tk is always kept around for compiling packages that depend on Tk. These sed's 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 -sf ...: These commands create compatibility symbolic links.
Last updated on 2005-02-08 19:52:39 -0700