1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
---|
8 | <!ENTITY tk-download-ftp " ">
|
---|
9 | <!-- <!ENTITY tk-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz">-->
|
---|
10 | <!ENTITY tk-md5sum "408e34fe8a1cec497f98f05bbe89b348">
|
---|
11 | <!ENTITY tk-size "3.1 MB">
|
---|
12 | <!ENTITY tk-buildsize "21.6 MB">
|
---|
13 | <!ENTITY tk-time "0.4 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
17 | <?dbhtml filename="tk.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Tk-&tk-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="tk">
|
---|
27 | <primary sortas="a-Tk">Tk</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Tk</title>
|
---|
32 |
|
---|
33 | <para>The <application>Tk</application> package contains a
|
---|
34 | TCL GUI Toolkit.</para>
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download MD5 sum: &tk-md5sum;</para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download size: &tk-size;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Estimated disk space required: &tk-buildsize;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated build time: &tk-time;</para>
|
---|
55 | </listitem>
|
---|
56 | </itemizedlist>
|
---|
57 |
|
---|
58 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
59 |
|
---|
60 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
61 | <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
|
---|
62 | <xref linkend="tcl"/></para>
|
---|
63 |
|
---|
64 | </sect2>
|
---|
65 |
|
---|
66 | <sect2 role="installation">
|
---|
67 | <title>Installation of Tk</title>
|
---|
68 |
|
---|
69 | <para>Install <application>Tk</application> by running the following
|
---|
70 | commands:</para>
|
---|
71 |
|
---|
72 | <screen><userinput>export VERSION=&tk-version; &&
|
---|
73 | export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
74 | export DIR=$PWD &&
|
---|
75 | cd unix &&
|
---|
76 | ./configure --prefix=/usr --enable-threads &&
|
---|
77 | make &&
|
---|
78 | sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
|
---|
79 | sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
|
---|
80 |
|
---|
81 | <para>The test is not recommended. Some tests may crash your X Server. To
|
---|
82 | test the results, issue: <command>make test</command>. Ensure you run it
|
---|
83 | from an X Window display device with the GLX extensions loaded, else the
|
---|
84 | tests will hang.</para>
|
---|
85 |
|
---|
86 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
87 |
|
---|
88 | <caution>
|
---|
89 | <para>If you don't use <command>su</command> to become the
|
---|
90 | <systemitem class="username">root</systemitem> user, ensure you set the
|
---|
91 | environment variables <envar>VERSION</envar> and <envar>V</envar> again
|
---|
92 | before running the installation commands.</para>
|
---|
93 | </caution>
|
---|
94 |
|
---|
95 | <screen role="root"><userinput>make install &&
|
---|
96 | install -v -d /usr/include/tk${V}/unix &&
|
---|
97 | install -v -m644 *.h /usr/include/tk${V}/unix/ &&
|
---|
98 | install -v -d /usr/include/tk${V}/generic &&
|
---|
99 | install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
---|
100 | rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
---|
101 | ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
---|
102 | ln -v -sf libtk${V}.so /usr/lib/libtk.so &&
|
---|
103 | ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
|
---|
104 |
|
---|
105 | <para>Clean up the unprivileged user's environment using the following
|
---|
106 | commands:</para>
|
---|
107 |
|
---|
108 | <screen><userinput>unset VERSION &&
|
---|
109 | unset V &&
|
---|
110 | unset DIR</userinput></screen>
|
---|
111 |
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2 role="commands">
|
---|
115 | <title>Command Explanations</title>
|
---|
116 |
|
---|
117 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
118 | to build with thread support.</para>
|
---|
119 |
|
---|
120 | <para><command>sed -i ...</command>: The <application>Tk</application> package
|
---|
121 | assumes that the source used to build <application>Tk</application> is
|
---|
122 | always kept around for compiling packages that depend on
|
---|
123 | <application>Tk</application>. These <command>sed</command>s remove the
|
---|
124 | reference to the build directory and replace them by saner system-wide
|
---|
125 | locations.</para>
|
---|
126 |
|
---|
127 | <para><command>install ...</command>: These commands install the internal
|
---|
128 | headers into a system-wide location.</para>
|
---|
129 |
|
---|
130 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
131 | symbolic links.</para>
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | <sect2 role="content">
|
---|
136 | <title>Contents</title>
|
---|
137 |
|
---|
138 | <segmentedlist>
|
---|
139 | <segtitle>Installed Programs</segtitle>
|
---|
140 | <segtitle>Installed Libraries</segtitle>
|
---|
141 | <segtitle>Installed Directories</segtitle>
|
---|
142 |
|
---|
143 | <seglistitem>
|
---|
144 | <seg>wish and wish8.4</seg>
|
---|
145 | <seg>libtk.so and libtkstub8.4.a</seg>
|
---|
146 | <seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
|
---|
147 | </seglistitem>
|
---|
148 | </segmentedlist>
|
---|
149 |
|
---|
150 | <variablelist>
|
---|
151 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
152 | <?dbfo list-presentation="list"?>
|
---|
153 | <?dbhtml list-presentation="table"?>
|
---|
154 |
|
---|
155 | <varlistentry id="wish">
|
---|
156 | <term><command>wish</command></term>
|
---|
157 | <listitem>
|
---|
158 | <para> is a symlink to the <command>wish8.4</command> program.</para>
|
---|
159 | <indexterm zone="tk wish">
|
---|
160 | <primary sortas="g-wish">wish</primary>
|
---|
161 | </indexterm>
|
---|
162 | </listitem>
|
---|
163 | </varlistentry>
|
---|
164 |
|
---|
165 | <varlistentry id="wish8.4">
|
---|
166 | <term><command>wish8.4</command></term>
|
---|
167 | <listitem>
|
---|
168 | <para> is a simple shell containing the
|
---|
169 | <application>Tk</application> toolkit that creates a main window and
|
---|
170 | then processes <application>Tcl</application> commands.</para>
|
---|
171 | <indexterm zone="tk wish8.4">
|
---|
172 | <primary sortas="b-wish8.4">wish8.4</primary>
|
---|
173 | </indexterm>
|
---|
174 | </listitem>
|
---|
175 | </varlistentry>
|
---|
176 |
|
---|
177 | <varlistentry id="libtk">
|
---|
178 | <term><filename role="library">libtk.so</filename></term>
|
---|
179 | <listitem>
|
---|
180 | <para>contains the API functions required
|
---|
181 | by <application>Tk</application>.</para>
|
---|
182 | <indexterm zone="tk libtk">
|
---|
183 | <primary sortas="c-libtk">libtk.so</primary>
|
---|
184 | </indexterm>
|
---|
185 | </listitem>
|
---|
186 | </varlistentry>
|
---|
187 |
|
---|
188 | </variablelist>
|
---|
189 |
|
---|
190 | </sect2>
|
---|
191 |
|
---|
192 | </sect1>
|
---|