The Tcl package contains the Tool Command Language, a robust general-purpose scripting language.
This package is known to build and work properly using an LFS-7.4 platform.
Download (HTTP): http://downloads.sourceforge.net/tcl/tcl8.6.0-src.tar.gz
Download MD5 sum: 573aa5fe678e9185ef2b3c56b24658d3
Download size: 8.3 MB
Estimated disk space required: 80 MB (includes documentation installation)
Estimated build time: 0.5 SBU
Optional Documentation
Download (HTTP): http://downloads.sourceforge.net/tcl/tcl8.6.0-html.tar.gz
Download MD5 sum: e53baf609df8b55f091c258886b6f994
Download size: 913 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.6.0-html.tar.gz --strip-components=1
Install Tcl by running the following commands:
cd unix && ./configure --prefix=/usr \ --without-tzdata \ --mandir=/usr/share/man \ $([ $(uname -m) = x86_64 ] && echo --enable-64bit) && make && sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ -i tclConfig.sh
To test the results, issue: make test.
Now, as the root
user:
make install && make install-private-headers && ln -v -sf tclsh8.6 /usr/bin/tclsh && chmod -v 755 /usr/lib/libtcl8.6.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-8.6.0 && cp -v -r ../html/* /usr/share/doc/tcl-8.6.0
--without-tzdata
: This switch prevents
installation of the shipped timezone data which are older than the
ones provided in LFS.
$([ $(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 tclsh8.6 /usr/bin/tclsh: This command is used to create a compatibility symbolic link to the tclsh8.6 file as many packages expect a file named tclsh.
sed -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 2013-08-20 13:51:02 -0700