The Tk package contains a TCL GUI Toolkit.
Download (HTTP): http://downloads.sourceforge.net/tcl/tk8.4.18-src.tar.gz
Download (FTP): ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles/tk8.4.18-src.tar.gz
Download MD5 sum: bf52be013df31198b144d1ca72b094fb
Download size: 3.3 MB
Estimated disk space required: 23 MB
Estimated build time: 0.3 SBU
X Window System and Tcl-8.4.18
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/tk
Install Tk by running the following commands:
cd unix && ./configure --prefix=/usr \ --enable-threads \ --mandir=/usr/share/man && make && sed -i \ -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \ -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ -e "/SEARCH/s/=.*/=''/" \ tkConfig.sh
Running the tests is not recommended. Some tests may crash your X Server. To test the results anyway, 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 && make install-private-headers && ln -v -sf wish8.4 /usr/bin/wish
--enable-threads
: This
switch forces the package to build with thread support.
make install-private-headers: This command is used to install the Tk library interface headers used by other packages if they link to the Tk library.
ln -v -sf wish8.4 /usr/bin/wish: This command is used to create a compatibility symbolic link to the wish8.4 file as many packages expect a file named wish.
sed -i -e ... tkConfig.sh: The Tk package expects that its source tree is preserved so that packages depending on it for their compilation can utilize it. This sed removes the references to the build directory and replaces them with saner system-wide locations.
Last updated on 2008-05-09 08:00:42 -0500