%general-entities; ]> $LastChangedBy$ $Date$ Tcl-&tcl-version; Tcl Introduction to <application>Tcl</application> 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 <application>Tcl</application> This package is also installed in LFS during the bootstrap phase. The significant difference between the two installations (other than installing to /usr) is 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 && ./configure --prefix=/usr --enable-threads && make && sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh && sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh && sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',\ TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh Now, as the root user: make install && install -d /usr/include/tcl${V}/unix && install -m644 *.h /usr/include/tcl${V}/unix/ && install -d /usr/include/tcl${V}/generic && install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ && rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h && ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include && ln -sf libtcl${V}.so /usr/lib/libtcl.so && ln -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 ...: The Tcl package assumes that the source that is used to build Tcl is always kept around for compiling packages that depend on Tcl. 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 -sf ...: These commands create compatibility symbolic links. Contents Installed Program Installed Libraries Installed Directories tclsh libtcl.so and libtclstub8.4.a /usr/lib/tcl8.4 and /usr/include/tcl8.4 Short Descriptions tclsh is a simple shell containing the Tcl interpreter. tclsh libtcl.so contains the API functions required by Tcl. libtcl.so