%general-entities; ]> $LastChangedBy$ $Date$ tcl&tcl-version;-src.tar tcl Tcl-&tcl-version; Tcl Introduction to Tcl The Tcl package contains the Tool Command Language, a robust general-purpose scripting language. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &tcl-md5sum; Download size: &tcl-size; Estimated disk space required: &tcl-buildsize; Estimated build time: &tcl-time; User Notes: Installation of Tcl This package is also installed in LFS during the bootstrap phase. As it is not installed during Chapter 6 of LFS, installation instructions are included here in BLFS. Install Tcl by running the following commands: cd unix && ./configure --prefix=/usr --enable-threads && make && sed -i -e "s:${PWD}:/usr/lib:" \ -e "s:$(dirname ${PWD}):/usr/include/tcl&tcl-ver;:" \ -e "/TCL_LIB_FILE/ s:':\":g" \ tclConfig.sh To test the results, issue: make test. Now, as the root user: make install && install -v -d /usr/include/tcl&tcl-ver;/{unix,generic} && install -v -m644 *.h /usr/include/tcl&tcl-ver;/unix/ && install -v -m644 ../generic/*.h /usr/include/tcl&tcl-ver;/generic/ && rm -v -f /usr/include/tcl&tcl-ver;/generic/tcl{,{,Plat}Decls}.h && ln -v -nsf ../../include/tcl&tcl-ver; /usr/lib/tcl&tcl-ver;/include && ln -v -sf libtcl&tcl-ver;.so /usr/lib/libtcl.so && ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh Command Explanations --enable-threads: This switch forces the package to build with thread support. sed -i -e ... tclConfig.sh: The Tcl 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. 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 tclsh and tclsh&tcl-ver; libtcl.so and libtclstub&tcl-ver;.a /usr/include/tcl&tcl-ver; and /usr/lib/tcl&tcl-ver; Short Descriptions tclsh is a symlink to the tclsh&tcl-ver; program. tclsh tclsh&tcl-ver; is a simple shell containing the Tcl interpreter. tclsh&tcl-ver; libtcl.so contains the API functions required by Tcl. libtcl.so