[fcc02767] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[bf6c6f8] | 6 | <!ENTITY tdbc-ver "1.1.3">
|
---|
| 7 | <!ENTITY itcl-ver "4.2.2">
|
---|
[fcc02767] | 8 | ]>
|
---|
| 9 |
|
---|
[593b439a] | 10 | <sect1 id="ch-system-tcl" role="wrap">
|
---|
[fcc02767] | 11 | <?dbhtml filename="tcl.html"?>
|
---|
| 12 |
|
---|
| 13 | <sect1info condition="script">
|
---|
| 14 | <productname>tcl</productname>
|
---|
| 15 | <productnumber>&tcl-version;</productnumber>
|
---|
| 16 | <address>&tcl-url;</address>
|
---|
| 17 | </sect1info>
|
---|
| 18 |
|
---|
| 19 | <title>Tcl-&tcl-version;</title>
|
---|
| 20 |
|
---|
[593b439a] | 21 | <indexterm zone="ch-system-tcl">
|
---|
[fcc02767] | 22 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title/>
|
---|
| 27 |
|
---|
| 28 | <para>The <application>Tcl</application> package contains the Tool Command Language,
|
---|
| 29 | a robust general-purpose scripting language. The <application>Expect</application> package
|
---|
| 30 | is written in the <application>Tcl</application> language.</para>
|
---|
| 31 |
|
---|
| 32 | <segmentedlist>
|
---|
| 33 | <segtitle>&buildtime;</segtitle>
|
---|
| 34 | <segtitle>&diskspace;</segtitle>
|
---|
| 35 |
|
---|
| 36 | <seglistitem>
|
---|
[fb386e0] | 37 | <seg>&tcl-tmp-sbu;</seg>
|
---|
| 38 | <seg>&tcl-tmp-du;</seg>
|
---|
[fcc02767] | 39 | </seglistitem>
|
---|
| 40 | </segmentedlist>
|
---|
| 41 |
|
---|
| 42 | </sect2>
|
---|
| 43 |
|
---|
| 44 | <sect2 role="installation">
|
---|
| 45 | <title>Installation of Tcl</title>
|
---|
| 46 |
|
---|
| 47 | <para>This package and the next two (Expect and DejaGNU) are
|
---|
[df2e99e] | 48 | installed to support running the test suites for binutils and GCC and other
|
---|
[fcc02767] | 49 | packages. Installing three packages for testing purposes may seem
|
---|
| 50 | excessive, but it is very reassuring, if not essential, to know that the
|
---|
[df2e99e] | 51 | most important tools are working properly.</para>
|
---|
[fcc02767] | 52 |
|
---|
[28e610db] | 53 | <!-- <para>Note that the Tcl package used here is a minimal version needed
|
---|
[d672ab7] | 54 | to run the LFS tests. For the full package, see the
|
---|
[28e610db] | 55 | <ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>-->
|
---|
| 56 |
|
---|
| 57 | <para>First, unpack the documentation by issuing the following command:</para>
|
---|
| 58 |
|
---|
[a35db3f] | 59 | <screen><userinput remap="pre">tar -xf ../tcl&tcl-version;-html.tar.gz --strip-components=1</userinput></screen>
|
---|
[fcc02767] | 60 |
|
---|
| 61 | <para>Prepare Tcl for compilation:</para>
|
---|
| 62 |
|
---|
| 63 | <screen><userinput remap="configure">SRCDIR=$(pwd)
|
---|
| 64 | cd unix
|
---|
| 65 | ./configure --prefix=/usr \
|
---|
| 66 | --mandir=/usr/share/man \
|
---|
| 67 | $([ "$(uname -m)" = x86_64 ] && echo --enable-64bit)</userinput></screen>
|
---|
| 68 |
|
---|
| 69 | <variablelist>
|
---|
| 70 | <title>The meaning of the configure options:</title>
|
---|
| 71 |
|
---|
| 72 | <varlistentry>
|
---|
| 73 | <term><parameter>$([ "$(uname -m)" = x86_64 ] && echo --enable-64bit)</parameter></term>
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>The construct <parameter>$(<shell command>)</parameter>
|
---|
[aefc822] | 76 | is replaced by the output of the shell command. Here this output is
|
---|
[fcc02767] | 77 | empty if running on a 32 bit machine, and is
|
---|
| 78 | <parameter>--enable-64bit</parameter> if running on a 64 bit machine.
|
---|
| 79 | </para>
|
---|
| 80 | </listitem>
|
---|
| 81 | </varlistentry>
|
---|
| 82 |
|
---|
| 83 | </variablelist>
|
---|
| 84 |
|
---|
| 85 | <para>Build the package:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput remap="make">make
|
---|
| 88 |
|
---|
| 89 | sed -e "s|$SRCDIR/unix|/usr/lib|" \
|
---|
| 90 | -e "s|$SRCDIR|/usr/include|" \
|
---|
| 91 | -i tclConfig.sh
|
---|
| 92 |
|
---|
| 93 | sed -e "s|$SRCDIR/unix/pkgs/tdbc&tdbc-ver;|/usr/lib/tdbc&tdbc-ver;|" \
|
---|
| 94 | -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/generic|/usr/include|" \
|
---|
| 95 | -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/library|/usr/lib/tcl8.6|" \
|
---|
| 96 | -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;|/usr/include|" \
|
---|
| 97 | -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh
|
---|
| 98 |
|
---|
| 99 | sed -e "s|$SRCDIR/unix/pkgs/itcl&itcl-ver;|/usr/lib/itcl&itcl-ver;|" \
|
---|
| 100 | -e "s|$SRCDIR/pkgs/itcl&itcl-ver;/generic|/usr/include|" \
|
---|
| 101 | -e "s|$SRCDIR/pkgs/itcl&itcl-ver;|/usr/include|" \
|
---|
| 102 | -i pkgs/itcl&itcl-ver;/itclConfig.sh
|
---|
| 103 |
|
---|
| 104 | unset SRCDIR</userinput></screen>
|
---|
| 105 |
|
---|
[aefc822] | 106 | <para>The various <quote>sed</quote> instructions after the
|
---|
| 107 | <quote>make</quote> command removes references to the build directory from
|
---|
| 108 | the configuration files and replaces them with the install directory.
|
---|
| 109 | This is not mandatory for the remainder of LFS, but may be needed in case a
|
---|
| 110 | package built later uses Tcl.</para>
|
---|
[fcc02767] | 111 |
|
---|
[28e610db] | 112 | <para>To test the results, issue:</para>
|
---|
| 113 |
|
---|
| 114 | <screen><userinput remap="test">make test</userinput></screen>
|
---|
[c8fd7fe] | 115 |
|
---|
[fcc02767] | 116 | <para>Install the package:</para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 119 |
|
---|
| 120 | <para>Make the installed library writable so debugging symbols can
|
---|
| 121 | be removed later:</para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput remap="install">chmod -v u+w /usr/lib/libtcl&tcl-major-version;.so</userinput></screen>
|
---|
| 124 |
|
---|
[aefc822] | 125 | <para>Install Tcl's headers. The next package, Expect, requires them.</para>
|
---|
[fcc02767] | 126 |
|
---|
| 127 | <screen><userinput remap="install">make install-private-headers</userinput></screen>
|
---|
| 128 |
|
---|
| 129 | <para>Now make a necessary symbolic link:</para>
|
---|
| 130 |
|
---|
| 131 | <screen><userinput remap="install">ln -sfv tclsh&tcl-major-version; /usr/bin/tclsh</userinput></screen>
|
---|
| 132 |
|
---|
[06e7b361] | 133 | <para>Rename a man page that conflicts with a Perl man page:</para>
|
---|
[d668398] | 134 |
|
---|
| 135 | <screen><userinput remap="install">mv /usr/share/man/man3/{Thread,Tcl_Thread}.3</userinput></screen>
|
---|
| 136 |
|
---|
[06e7b361] | 137 | <para>If you downloaded the optional documentation, install it by issuing
|
---|
[007d3bc] | 138 | the following commands:</para>
|
---|
[06e7b361] | 139 |
|
---|
[007d3bc] | 140 | <screen><userinput remap="install">mkdir -v -p /usr/share/doc/tcl-&tcl-version;
|
---|
[06e7b361] | 141 | cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
|
---|
| 142 |
|
---|
[fcc02767] | 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 id="contents-tcl" role="content">
|
---|
| 146 | <title>Contents of Tcl</title>
|
---|
| 147 |
|
---|
| 148 | <segmentedlist>
|
---|
| 149 | <segtitle>Installed programs</segtitle>
|
---|
| 150 | <segtitle>Installed library</segtitle>
|
---|
| 151 |
|
---|
| 152 | <seglistitem>
|
---|
[aefc822] | 153 | <seg>
|
---|
[d672ab7] | 154 | tclsh (link to tclsh&tcl-major-version;) and
|
---|
[aefc822] | 155 | tclsh&tcl-major-version;
|
---|
| 156 | </seg>
|
---|
| 157 | <seg>
|
---|
[d672ab7] | 158 | libtcl&tcl-major-version;.so and
|
---|
[aefc822] | 159 | libtclstub&tcl-major-version;.a
|
---|
| 160 | </seg>
|
---|
[fcc02767] | 161 | </seglistitem>
|
---|
| 162 | </segmentedlist>
|
---|
| 163 |
|
---|
| 164 | <variablelist>
|
---|
| 165 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 166 | <?dbfo list-presentation="list"?>
|
---|
| 167 | <?dbhtml list-presentation="table"?>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="tclsh&tcl-major-version;">
|
---|
| 170 | <term><command>tclsh&tcl-major-version;</command></term>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para>The Tcl command shell</para>
|
---|
[593b439a] | 173 | <indexterm zone="ch-system-tcl tclsh&tcl-major-version;">
|
---|
[fcc02767] | 174 | <primary sortas="b-tclsh&tcl-major-version;">tclsh&tcl-major-version;</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="tclsh">
|
---|
| 180 | <term><command>tclsh</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>A link to tclsh&tcl-major-version;</para>
|
---|
[593b439a] | 183 | <indexterm zone="ch-system-tcl tclsh">
|
---|
[fcc02767] | 184 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="libtcl&tcl-major-version;.so">
|
---|
| 190 | <term><filename class="libraryfile">libtcl&tcl-major-version;.so</filename></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>The Tcl library</para>
|
---|
[593b439a] | 193 | <indexterm zone="ch-system-tcl libtcl&tcl-major-version;.so">
|
---|
[fcc02767] | 194 | <primary sortas="c-libtcl&tcl-major-version;.so">libtcl&tcl-major-version;.so</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="libtclstub&tcl-major-version;.a">
|
---|
| 200 | <term><filename class="libraryfile">libtclstub&tcl-major-version;.a</filename></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>The Tcl Stub library</para>
|
---|
[593b439a] | 203 | <indexterm zone="ch-system-tcl libtclstub&tcl-major-version;.a">
|
---|
[fcc02767] | 204 | <primary sortas="c-libtclstub&tcl-major-version;.a">libtclstub&tcl-major-version;.a</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
| 209 | </variablelist>
|
---|
| 210 |
|
---|
| 211 | </sect2>
|
---|
| 212 |
|
---|
| 213 | </sect1>
|
---|