[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;
|
---|
[82e98d0] | 6 | <!ENTITY tdbc-ver "1.1.5">
|
---|
| 7 | <!ENTITY itcl-ver "4.2.3">
|
---|
[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
|
---|
[d6346a7] | 30 | is written in <application>Tcl</application> (pronounced "tickle").</para>
|
---|
[fcc02767] | 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
|
---|
[d6346a7] | 48 | installed to support running the test suites for Binutils, 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 |
|
---|
| 53 | <para>Prepare Tcl for compilation:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput remap="configure">SRCDIR=$(pwd)
|
---|
| 56 | cd unix
|
---|
| 57 | ./configure --prefix=/usr \
|
---|
[83c258f] | 58 | --mandir=/usr/share/man</userinput></screen>
|
---|
[fcc02767] | 59 |
|
---|
| 60 | <para>Build the package:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput remap="make">make
|
---|
| 63 |
|
---|
| 64 | sed -e "s|$SRCDIR/unix|/usr/lib|" \
|
---|
| 65 | -e "s|$SRCDIR|/usr/include|" \
|
---|
| 66 | -i tclConfig.sh
|
---|
| 67 |
|
---|
| 68 | sed -e "s|$SRCDIR/unix/pkgs/tdbc&tdbc-ver;|/usr/lib/tdbc&tdbc-ver;|" \
|
---|
| 69 | -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/generic|/usr/include|" \
|
---|
| 70 | -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/library|/usr/lib/tcl8.6|" \
|
---|
| 71 | -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;|/usr/include|" \
|
---|
| 72 | -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh
|
---|
| 73 |
|
---|
| 74 | sed -e "s|$SRCDIR/unix/pkgs/itcl&itcl-ver;|/usr/lib/itcl&itcl-ver;|" \
|
---|
| 75 | -e "s|$SRCDIR/pkgs/itcl&itcl-ver;/generic|/usr/include|" \
|
---|
| 76 | -e "s|$SRCDIR/pkgs/itcl&itcl-ver;|/usr/include|" \
|
---|
| 77 | -i pkgs/itcl&itcl-ver;/itclConfig.sh
|
---|
| 78 |
|
---|
| 79 | unset SRCDIR</userinput></screen>
|
---|
| 80 |
|
---|
[aefc822] | 81 | <para>The various <quote>sed</quote> instructions after the
|
---|
[d6346a7] | 82 | <quote>make</quote> command remove references to the build directory from
|
---|
| 83 | the configuration files and replace them with the install directory.
|
---|
| 84 | This is not mandatory for the remainder of LFS, but may be needed if a
|
---|
[aefc822] | 85 | package built later uses Tcl.</para>
|
---|
[fcc02767] | 86 |
|
---|
[28e610db] | 87 | <para>To test the results, issue:</para>
|
---|
| 88 |
|
---|
| 89 | <screen><userinput remap="test">make test</userinput></screen>
|
---|
[c8fd7fe] | 90 |
|
---|
[fcc02767] | 91 | <para>Install the package:</para>
|
---|
| 92 |
|
---|
| 93 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 94 |
|
---|
| 95 | <para>Make the installed library writable so debugging symbols can
|
---|
| 96 | be removed later:</para>
|
---|
| 97 |
|
---|
| 98 | <screen><userinput remap="install">chmod -v u+w /usr/lib/libtcl&tcl-major-version;.so</userinput></screen>
|
---|
| 99 |
|
---|
[aefc822] | 100 | <para>Install Tcl's headers. The next package, Expect, requires them.</para>
|
---|
[fcc02767] | 101 |
|
---|
| 102 | <screen><userinput remap="install">make install-private-headers</userinput></screen>
|
---|
| 103 |
|
---|
| 104 | <para>Now make a necessary symbolic link:</para>
|
---|
| 105 |
|
---|
| 106 | <screen><userinput remap="install">ln -sfv tclsh&tcl-major-version; /usr/bin/tclsh</userinput></screen>
|
---|
| 107 |
|
---|
[06e7b361] | 108 | <para>Rename a man page that conflicts with a Perl man page:</para>
|
---|
[d668398] | 109 |
|
---|
| 110 | <screen><userinput remap="install">mv /usr/share/man/man3/{Thread,Tcl_Thread}.3</userinput></screen>
|
---|
| 111 |
|
---|
[583156ac] | 112 | <para>Optionally, install the documentation by issuing
|
---|
[007d3bc] | 113 | the following commands:</para>
|
---|
[06e7b361] | 114 |
|
---|
[583156ac] | 115 | <screen><userinput remap="install">cd ..
|
---|
| 116 | tar -xf ../tcl&tcl-version;-html.tar.gz --strip-components=1
|
---|
| 117 | mkdir -v -p /usr/share/doc/tcl-&tcl-version;
|
---|
| 118 | cp -v -r ./html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
|
---|
[06e7b361] | 119 |
|
---|
[fcc02767] | 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 id="contents-tcl" role="content">
|
---|
| 123 | <title>Contents of Tcl</title>
|
---|
| 124 |
|
---|
| 125 | <segmentedlist>
|
---|
| 126 | <segtitle>Installed programs</segtitle>
|
---|
| 127 | <segtitle>Installed library</segtitle>
|
---|
| 128 |
|
---|
| 129 | <seglistitem>
|
---|
[aefc822] | 130 | <seg>
|
---|
[d672ab7] | 131 | tclsh (link to tclsh&tcl-major-version;) and
|
---|
[aefc822] | 132 | tclsh&tcl-major-version;
|
---|
| 133 | </seg>
|
---|
| 134 | <seg>
|
---|
[d672ab7] | 135 | libtcl&tcl-major-version;.so and
|
---|
[aefc822] | 136 | libtclstub&tcl-major-version;.a
|
---|
| 137 | </seg>
|
---|
[fcc02767] | 138 | </seglistitem>
|
---|
| 139 | </segmentedlist>
|
---|
| 140 |
|
---|
| 141 | <variablelist>
|
---|
| 142 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 143 | <?dbfo list-presentation="list"?>
|
---|
| 144 | <?dbhtml list-presentation="table"?>
|
---|
| 145 |
|
---|
| 146 | <varlistentry id="tclsh&tcl-major-version;">
|
---|
| 147 | <term><command>tclsh&tcl-major-version;</command></term>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>The Tcl command shell</para>
|
---|
[593b439a] | 150 | <indexterm zone="ch-system-tcl tclsh&tcl-major-version;">
|
---|
[fcc02767] | 151 | <primary sortas="b-tclsh&tcl-major-version;">tclsh&tcl-major-version;</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="tclsh">
|
---|
| 157 | <term><command>tclsh</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>A link to tclsh&tcl-major-version;</para>
|
---|
[593b439a] | 160 | <indexterm zone="ch-system-tcl tclsh">
|
---|
[fcc02767] | 161 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="libtcl&tcl-major-version;.so">
|
---|
| 167 | <term><filename class="libraryfile">libtcl&tcl-major-version;.so</filename></term>
|
---|
| 168 | <listitem>
|
---|
| 169 | <para>The Tcl library</para>
|
---|
[593b439a] | 170 | <indexterm zone="ch-system-tcl libtcl&tcl-major-version;.so">
|
---|
[fcc02767] | 171 | <primary sortas="c-libtcl&tcl-major-version;.so">libtcl&tcl-major-version;.so</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="libtclstub&tcl-major-version;.a">
|
---|
| 177 | <term><filename class="libraryfile">libtclstub&tcl-major-version;.a</filename></term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para>The Tcl Stub library</para>
|
---|
[593b439a] | 180 | <indexterm zone="ch-system-tcl libtclstub&tcl-major-version;.a">
|
---|
[fcc02767] | 181 | <primary sortas="c-libtclstub&tcl-major-version;.a">libtclstub&tcl-major-version;.a</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | </variablelist>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | </sect1>
|
---|