%general-entities; ]> $LastChangedBy$ $Date$ tk&tk-version;-src.tar tk Tk-&tk-version; Tk Introduction to Tk The Tk package contains a TCL GUI Toolkit. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &tk-md5sum; Download size: &tk-size; Estimated disk space required: &tk-buildsize; Estimated build time: &tk-time; Tk Dependencies Required X ( or ) and Installation of Tk Install Tk by running the following commands: export VERSION=&tk-version; && export V=`echo $VERSION | cut -d "." -f 1,2` && export DIR=$PWD && cd unix && sed -i "s/relid'/relid/" configure && ./configure --prefix=/usr --enable-threads && make && sed -i -e "s:${DIR}/unix:/usr/lib:" \ -e "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: If you don't use su to become the root user, ensure you set the environment variables VERSION and V again before running the installation commands. 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 "s/relid'/relid/" configure: This command fixes a syntax error in the configure script. sed -i -e ... tkConfig.sh: The Tk package assumes that the source used to build Tk is always kept around for compiling packages that depend on Tk. This sed removes the references to the build directory and replaces 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 Installed Libraries Installed Directories wish and wish8.4 libtk.so and libtkstub8.4.a /usr/include/tk8.4 and /usr/lib/tk8.4 Short Descriptions wish is a symlink to the wish8.4 program. wish wish8.4 is a simple shell containing the Tk toolkit that creates a main window and then processes Tcl commands. wish8.4 libtk.so contains the API functions required by Tk. libtk.so