%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; Installation of Tcl This package is also installed in LFS during the bootstrap phase. At the time of the LFS-6.1 release, &tcl-version; was not available. The significant difference between the two installations (other than installing to /usr) is that the package is installed in such a way that there is no need to keep the build directory around after installation. Install Tcl by running the following commands: export VERSION=&tcl-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/tcl${V}:" \ -e "s:^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so':\ TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\":" tclConfig.sh To test the results, issue: make test. 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/tcl${V}/unix && install -v -m644 *.h /usr/include/tcl${V}/unix/ && install -v -d /usr/include/tcl${V}/generic && install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ && rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h && ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include && ln -v -sf libtcl${V}.so /usr/lib/libtcl.so && ln -v -sf tclsh${V} /usr/bin/tclsh 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 ... tclConfig.sh: The Tcl package assumes that the source used to build Tcl is always kept around for compiling packages that depend on Tcl. 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 tclsh8.4 libtcl.so and libtclstub8.4.a /usr/include/tcl8.4 and /usr/lib/tcl8.4 Short Descriptions tclsh is a symlink to the tclsh8.4 program. tclsh tclsh8.4 is a simple shell containing the Tcl interpreter. tclsh8.4 libtcl.so contains the API functions required by Tcl. libtcl.so