%general-entities; ]> $LastChangedBy$ $Date$ Tcl-&tcl-version; Tcl Introduction to Tcl The Tcl package contains the Tool Command Language, a robust general-purpose scripting language. &lfs79_checked; 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; Additional Downloads Optional Documentation Download (HTTP): Download MD5 sum: &tcl-doc-md5sum; Download size: &tcl-doc-size; 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. If you downloaded the optional documentation, unpack the tarball by issuing the following command: tar -xf ../tcl&tcl-version;-html.tar.gz --strip-components=1 Install Tcl by running the following commands: export SRCDIR=`pwd` && cd unix && ./configure --prefix=/usr \ --mandir=/usr/share/man \ $([ $(uname -m) = x86_64 ] && echo --enable-64bit) && make && sed -e "s#$SRCDIR/unix#/usr/lib#" \ -e "s#$SRCDIR#/usr/include#" \ -i tclConfig.sh && sed -e "s#$SRCDIR/unix/pkgs/tdbc&tdbc-ver;#/usr/lib/tdbc&tdbc-ver;#" \ -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/generic#/usr/include#" \ -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/library#/usr/lib/tcl8.6#" \ -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;#/usr/include#" \ -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh && sed -e "s#$SRCDIR/unix/pkgs/itcl&itcl-ver;#/usr/lib/itcl&itcl-ver;#" \ -e "s#$SRCDIR/pkgs/itcl&itcl-ver;/generic#/usr/include#" \ -e "s#$SRCDIR/pkgs/itcl&itcl-ver;#/usr/include#" \ -i pkgs/itcl&itcl-ver;/itclConfig.sh && unset SRCDIR To test the results, issue: make test. Now, as the root user: make install && make install-private-headers && ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh && chmod -v 755 /usr/lib/libtcl&tcl-ver;.so If you downloaded the optional documentation, install it by issuing the following commands as the root user: mkdir -v -p /usr/share/doc/tcl-&tcl-version; && cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version; Command Explanations $([ $(uname -m) = x86_64 ] && echo --enable-64bit): This switch is used to enable 64 bit support in Tcl on 64 bit operating systems. make install-private-headers: This command is used to install the Tcl library interface headers used by other packages if they link to the Tcl library. ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh: This command is used to create a compatibility symbolic link to the tclsh&tcl-ver; file as many packages expect a file named tclsh. sed -e ...: The Tcl package expects that its source tree is preserved so that packages depending on it for their compilation can utilize it. These sed remove the references to the build directory and replace them with saner system-wide locations. Contents Installed Programs Installed Libraries Installed Directories tclsh and tclsh&tcl-ver; libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a /usr/lib/itcl4.0.1, /usr/lib/sqlite3.8.6 /usr/lib/tcl8, /usr/lib/tcl&tcl-ver;, /usr/lib/tdbc1.0.1, /usr/lib/tdbcmysql1.0.1, /usr/lib/tdbcodbc1.0.1, /usr/lib/tdbcpostgres1.0.1, /usr/lib/thread2.7.1, /usr/share/doc/tcl-&tcl-version;, and /usr/share/man/mann 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&tcl-ver;.so contains the API functions required by Tcl. libtcl&tcl-ver;.so