source: general/prog/tcl.xml@ f3d509e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f3d509e was f3d509e, checked in by Igor Živković <igor@…>, 19 years ago

Updated to Tcl/Tk-8.4.9.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3204 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.3 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!ENTITY tcl-download-http "http://prdownloads.sourceforge.net/tcl/tcl&tcl-version;-src.tar.gz">
8<!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz">
[f3d509e]9<!ENTITY tcl-size "3.4 MB">
[53cdded4]10<!ENTITY tcl-buildsize "34 MB">
[f3d509e]11<!ENTITY tcl-time "0.33 SBU">
[52d29f7]12]>
13
[503b39f]14<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
[a0f03b0]15<sect1info>
[5cd0959d]16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
[a0f03b0]18</sect1info>
[19aa75a]19<?dbhtml filename="tcl.html"?>
[503b39f]20<title>Tcl-&tcl-version;</title>
[c4f1401]21
[52d29f7]22<sect2>
23<title>Introduction to <application>Tcl</application></title>
[3b01cdd]24
25<para>The <application>Tcl</application> package contains the Tool Command
26Language, a robust general-purpose scripting language.</para>
27
[52d29f7]28<sect3><title>Package information</title>
29<itemizedlist spacing='compact'>
30<listitem><para>Download (HTTP): <ulink
31url="&tcl-download-http;"/></para></listitem>
32<listitem><para>Download (FTP): <ulink
33url="&tcl-download-ftp;"/></para></listitem>
34<listitem><para>Download size: &tcl-size;</para></listitem>
[f3d509e]35<listitem><para>Estimated disk space required:
[52d29f7]36&tcl-buildsize;</para></listitem>
37<listitem><para>Estimated build time:
38&tcl-time;</para></listitem></itemizedlist>
39</sect3>
[3b01cdd]40
[52d29f7]41</sect2>
42
43<sect2>
44<title>Installation of <application>Tcl</application></title>
[3b01cdd]45
[53cdded4]46<note><para>This package is also installed in <acronym>LFS</acronym> during
47the bootstrap phase. The significant difference between the two installations
48(other than installing to <filename class="directory">/usr</filename>) is the
49package is installed in such a way that there is no need to keep the build
[52d29f7]50directory around after installation.</para></note>
[3b01cdd]51
52<para>Install <application>Tcl</application> by running the following
53commands:</para>
54
[52d29f7]55<screen><userinput><command>VERSION=&tcl-version; &amp;&amp;
56V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
57DIR=$PWD &amp;&amp;
58cd unix &amp;&amp;
[53cdded4]59./configure --prefix=/usr --enable-threads &amp;&amp;
[52d29f7]60make &amp;&amp;
61sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &amp;&amp;
62sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &amp;&amp;
63sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
64 tclConfig.sh &amp;&amp;
65make install &amp;&amp;
66install -d /usr/include/tcl${V}/unix &amp;&amp;
67install -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
68install -d /usr/include/tcl${V}/generic &amp;&amp;
69install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &amp;&amp;
70rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &amp;&amp;
[e2aa32b3]71ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
[52d29f7]72ln -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
73ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
[3b01cdd]74
[785d6d2f]75<caution><para>If you build the package as an ordinary user and then switch to
[53cdded4]76root to install the package, ensure you set the environment variables
[3b01cdd]77<envar>V</envar> and <envar>VERSION</envar> before running the installation
[785d6d2f]78commands.</para></caution>
[3b01cdd]79
[52d29f7]80</sect2>
81
82<sect2>
83<title>Command explanations</title>
[3b01cdd]84
[53cdded4]85<para><parameter>--enable-threads</parameter>: This switch forces the package
86to build with thread support.</para>
87
[52d29f7]88<para><command>sed -i ...</command>: The <application>Tcl</application>
[3b01cdd]89package assumes that the source that is used to build
90<application>Tcl</application> is always kept around for compiling packages
91that depend on <application>Tcl</application>. These <command>sed</command>'s
92remove the reference to the build directory and replace them by saner system
93wide locations.</para>
94
[52d29f7]95<para><command>install ...</command>: These commands install the internal
96headers into a system-wide location.</para>
[3b01cdd]97
[52d29f7]98<para><command>ln -sf ...</command>: These commands create compatibility
99symbolic links.</para>
[3b01cdd]100</sect2>
101
102<sect2>
103<title>Contents</title>
[53cdded4]104
[3b01cdd]105<para>The <application>Tcl</application> package contains
[53cdded4]106<command>tclsh</command>, the
107<filename class='libraryfile'>libtcl</filename> libraries and miscellaneous
108tools and scripts.</para>
109
[3b01cdd]110</sect2>
[53cdded4]111
[3b01cdd]112<sect2><title>Description</title>
[53cdded4]113
[3b01cdd]114<sect3><title>tclsh</title>
115<para><command>tclsh</command> is a simple shell containing the
116<application>Tcl</application> interpreter.</para></sect3>
[53cdded4]117
[52d29f7]118</sect2>
[c4f1401]119
120</sect1>
Note: See TracBrowser for help on using the repository browser.