The Tcl package contains the Tool Command Language, a robust general-purpose scripting language.
Download (HTTP): http://downloads.sourceforge.net/tcl/tcl8.5.6-src.tar.gz
Download (FTP): ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles/tcl8.5.6-src.tar.gz
Download MD5 sum: d0b0b3ff7600ff63135c710b575265cd
Download size: 4.2 MB
Estimated disk space required: 33 MB
Estimated build time: 0.5 SBU (additional 2.0 SBU to run the test suite)
Optional Documentation: http://downloads.sourceforge.net/tcl/tcl8.5.6-html.tar.gz
Download MD5 sum: e287dcb71b7e6ba9c7b1606a2020e61c
Download size: 925 KB
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/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 ../tcl8.5.6-html.tar.gz --strip-components=1
Install Tcl by running the following commands:
cd unix &&
./configure --prefix=/usr \
--enable-threads \
--mandir=/usr/share/man &&
make &&
sed -i \
-e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
-e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
-e "/SEARCH/s/=.*/=''/" \
tclConfig.sh
To test the results, issue: make test.
Now, as the root user:
make install && make install-private-headers && ln -v -sf tclsh8.5 /usr/bin/tclsh
If you downloaded the optional documentation, install it by issuing
the following commands as the root
user:
install -v -m755 -d /usr/share/doc/tcl-8.5.6 && cp -v -R ../html/* /usr/share/doc/tcl-8.5.6
--enable-threads: This
switch forces the package to build with thread support.
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 tclsh8.5 /usr/bin/tclsh: This command is used to create a compatibility symbolic link to the tclsh8.5 file as many packages expect a file named tclsh.
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.
Last updated on 2009-02-12 20:44:41 +0000