The Tk package contains a TCL GUI Toolkit.
Download (HTTP): http://prdownloads.sourceforge.net/tcl/tk8.4.11-src.tar.gz
Download MD5 sum: 408e34fe8a1cec497f98f05bbe89b348
Download size: 3.1 MB
Estimated disk space required: 21.6 MB
Estimated build time: 0.4 SBU
X (XFree86-4.5.0 or X.org-6.8.2) and Tcl-8.4.11
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
--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.
Last updated on 2005-08-01 13:29:19 -0600