source: general/prog/tcl.xml@ ff769b8c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 ff769b8c was ff769b8c, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Updated the XML sources to use DocBook XML DTD-4.4.

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

  • Property mode set to 100644
File size: 5.7 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[52d29f7]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">
[23460a6]9<!ENTITY tcl-md5sum "7e01b409925e4eb59ad44a4c12b9c681">
[f3d509e]10<!ENTITY tcl-size "3.4 MB">
[b1fc792b]11<!ENTITY tcl-buildsize "24.2 MB">
12<!ENTITY tcl-time "0.28 SBU (additional 0.73 SBU to run the test suite)">
[52d29f7]13]>
14
[503b39f]15<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
[a0f03b0]16<sect1info>
[5cd0959d]17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
[a0f03b0]19</sect1info>
[19aa75a]20<?dbhtml filename="tcl.html"?>
[503b39f]21<title>Tcl-&tcl-version;</title>
[6a2bce2]22<indexterm zone="tcl">
23<primary sortas="a-Tcl">Tcl</primary></indexterm>
[c4f1401]24
[52d29f7]25<sect2>
26<title>Introduction to <application>Tcl</application></title>
[3b01cdd]27
28<para>The <application>Tcl</application> package contains the Tool Command
29Language, a robust general-purpose scripting language.</para>
30
[52d29f7]31<sect3><title>Package information</title>
32<itemizedlist spacing='compact'>
33<listitem><para>Download (HTTP): <ulink
34url="&tcl-download-http;"/></para></listitem>
35<listitem><para>Download (FTP): <ulink
36url="&tcl-download-ftp;"/></para></listitem>
[23460a6]37<listitem><para>Download MD5 sum: &tcl-md5sum;</para></listitem>
[52d29f7]38<listitem><para>Download size: &tcl-size;</para></listitem>
[f3d509e]39<listitem><para>Estimated disk space required:
[52d29f7]40&tcl-buildsize;</para></listitem>
41<listitem><para>Estimated build time:
42&tcl-time;</para></listitem></itemizedlist>
43</sect3>
[3b01cdd]44
[52d29f7]45</sect2>
46
47<sect2>
48<title>Installation of <application>Tcl</application></title>
[3b01cdd]49
[53cdded4]50<note><para>This package is also installed in <acronym>LFS</acronym> during
51the bootstrap phase. The significant difference between the two installations
52(other than installing to <filename class="directory">/usr</filename>) is the
53package is installed in such a way that there is no need to keep the build
[52d29f7]54directory around after installation.</para></note>
[3b01cdd]55
56<para>Install <application>Tcl</application> by running the following
57commands:</para>
58
[d8614521]59<screen><userinput><command>export VERSION=&tcl-version; &amp;&amp;
60export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
61export DIR=$PWD &amp;&amp;
[52d29f7]62cd unix &amp;&amp;
[53cdded4]63./configure --prefix=/usr --enable-threads &amp;&amp;
[52d29f7]64make &amp;&amp;
65sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &amp;&amp;
66sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &amp;&amp;
[8c9ec303]67sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',\
68TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh</command></userinput></screen>
[d8614521]69
70<para>Now, as the root user:</para>
71
72<screen><userinput role='root'><command>make install &amp;&amp;
[52d29f7]73install -d /usr/include/tcl${V}/unix &amp;&amp;
74install -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
75install -d /usr/include/tcl${V}/generic &amp;&amp;
76install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &amp;&amp;
77rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &amp;&amp;
[e2aa32b3]78ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
[52d29f7]79ln -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
80ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
[3b01cdd]81
[d8614521]82<para>Clean up the unprivileged user's environment using the following
83commands:</para>
84
85<screen><userinput><command>unset VERSION &amp;&amp;
86unset V &amp;&amp;
87unset DIR</command></userinput></screen>
88
89<!--
[785d6d2f]90<caution><para>If you build the package as an ordinary user and then switch to
[53cdded4]91root to install the package, ensure you set the environment variables
[3b01cdd]92<envar>V</envar> and <envar>VERSION</envar> before running the installation
[785d6d2f]93commands.</para></caution>
[d8614521]94-->
[3b01cdd]95
[52d29f7]96</sect2>
97
98<sect2>
99<title>Command explanations</title>
[3b01cdd]100
[53cdded4]101<para><parameter>--enable-threads</parameter>: This switch forces the package
102to build with thread support.</para>
103
[52d29f7]104<para><command>sed -i ...</command>: The <application>Tcl</application>
[3b01cdd]105package assumes that the source that is used to build
106<application>Tcl</application> is always kept around for compiling packages
[d8614521]107that depend on <application>Tcl</application>. These <command>sed</command>s
[3b01cdd]108remove the reference to the build directory and replace them by saner system
109wide locations.</para>
110
[52d29f7]111<para><command>install ...</command>: These commands install the internal
112headers into a system-wide location.</para>
[3b01cdd]113
[52d29f7]114<para><command>ln -sf ...</command>: These commands create compatibility
115symbolic links.</para>
[3b01cdd]116</sect2>
117
118<sect2>
119<title>Contents</title>
[53cdded4]120
[bad8b53]121<segmentedlist>
[b1fc792b]122<segtitle>Installed Programs</segtitle>
[d8614521]123<segtitle>Installed Libraries</segtitle>
[bad8b53]124<segtitle>Installed Directories</segtitle>
[b1fc792b]125
[bad8b53]126<seglistitem>
[b1fc792b]127<seg>tclsh and tclsh8.4</seg>
[d8614521]128<seg>libtcl.so and libtclstub8.4.a</seg>
[b1fc792b]129<seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
130</seglistitem>
[bad8b53]131</segmentedlist>
132
133<variablelist>
134<bridgehead renderas="sect3">Short Descriptions</bridgehead>
135<?dbfo list-presentation="list"?>
136
137<varlistentry id="tclsh">
138<term><command>tclsh</command></term>
[b1fc792b]139<listitem><para> is a symlink to the <command>tclsh8.4</command>
140program.</para>
141<indexterm zone="tcl tclsh">
142<primary sortas="g-tclsh">tclsh</primary></indexterm>
143</listitem>
144</varlistentry>
145
146<varlistentry id="tclsh8.4">
147<term><command>tclsh8.4</command></term>
[bad8b53]148<listitem><para> is a simple shell containing the
149<application>Tcl</application> interpreter.</para>
[b1fc792b]150<indexterm zone="tcl tclsh8.4">
151<primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
[bad8b53]152</listitem>
153</varlistentry>
154
155<varlistentry id="libtcl">
156<term><filename role="library">libtcl.so</filename></term>
157<listitem><para>contains the <acronym>API</acronym> functions required
158by <application>Tcl</application>.</para>
[6a2bce2]159<indexterm zone="tcl libtcl">
160<primary sortas="c-libtcl">libtcl.so</primary></indexterm>
[bad8b53]161</listitem>
162</varlistentry>
163</variablelist>
[53cdded4]164
[52d29f7]165</sect2>
[c4f1401]166
167</sect1>
Note: See TracBrowser for help on using the repository browser.