source: general/prog/tk.xml@ 88dd4702

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 88dd4702 was 88dd4702, checked in by Randy McMurchy <randy@…>, 18 years ago

Updated to Tcl-8.4.12 and Tk-8.4.12

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

  • Property mode set to 100644
File size: 6.8 KB
Line 
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 "316491cb82d898b434842353aed1f0d6">
11 <!ENTITY tk-size "3.2 MB">
12 <!ENTITY tk-buildsize "23.5 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 <keywordset>
23 <keyword role="package">tk&tk-version;-src.tar</keyword>
24 <keyword role="ftpdir">tk</keyword>
25 </keywordset>
26 </sect1info>
27
28 <title>Tk-&tk-version;</title>
29
30 <indexterm zone="tk">
31 <primary sortas="a-Tk">Tk</primary>
32 </indexterm>
33
34 <sect2 role="package">
35 <title>Introduction to Tk</title>
36
37 <para>The <application>Tk</application> package contains a
38 TCL GUI Toolkit.</para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &tk-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &tk-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &tk-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &tk-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
63
64 <bridgehead renderas="sect4">Required</bridgehead>
65 <para role="required">X (<xref linkend="xfree86"/>, <xref linkend="xorg"/>,
66 or <xref linkend="xorg7"/>) and
67 <xref linkend="tcl"/></para>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of Tk</title>
73
74<para>Install <application>Tk</application> by running the following
75commands:</para>
76
77<screen><userinput>export VERSION=&tk-version; &amp;&amp;
78export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
79export DIR=$PWD &amp;&amp;
80cd unix &amp;&amp;
81sed -i "s/relid'/relid/" configure &amp;&amp;
82./configure --prefix=/usr --enable-threads &amp;&amp;
83make &amp;&amp;
84sed -i -e "s:${DIR}/unix:/usr/lib:" \
85 -e "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
86
87 <para>The test is not recommended. Some tests may crash your X Server. To
88 test the results, issue: <command>make test</command>. Ensure you run it
89 from an X Window display device with the GLX extensions loaded, else the
90 tests will hang.</para>
91
92 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
93
94 <caution>
95 <para>If you become the <systemitem class="username">root</systemitem>
96 user in a manner that doesn't preserve the unprivileged user's
97 environment, ensure you correctly set the environment variable
98 <envar>V</envar> again before running the installation commands.</para>
99 </caution>
100
101<screen role="root"><userinput>make install &amp;&amp;
102install -v -d /usr/include/tk${V}/unix &amp;&amp;
103install -v -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
104install -v -d /usr/include/tk${V}/generic &amp;&amp;
105install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp;
106rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp;
107ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
108ln -v -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
109ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
110
111 <para>Clean up the unprivileged user's environment using the following
112 commands:</para>
113
114<screen><userinput>unset VERSION &amp;&amp;
115unset V &amp;&amp;
116unset DIR</userinput></screen>
117
118 </sect2>
119
120 <sect2 role="commands">
121 <title>Command Explanations</title>
122
123 <para><parameter>--enable-threads</parameter>: This switch forces the package
124 to build with thread support.</para>
125
126 <para><command>sed -i "s/relid'/relid/" configure</command>: This command
127 fixes a syntax error in the <command>configure</command> script.</para>
128
129 <para><command>sed -i -e ... tkConfig.sh</command>: The
130 <application>Tk</application> package assumes that the source used to build
131 <application>Tk</application> is always kept around for compiling packages
132 that depend on <application>Tk</application>. This <command>sed</command>
133 removes the references to the build directory and replaces them with saner
134 system-wide locations.</para>
135
136 <para><command>install ...</command>: These commands install the internal
137 headers into a system-wide location.</para>
138
139 <para><command>ln -v -sf ...</command>: These commands create compatibility
140 symbolic links.</para>
141
142 </sect2>
143
144 <sect2 role="content">
145 <title>Contents</title>
146
147 <segmentedlist>
148 <segtitle>Installed Programs</segtitle>
149 <segtitle>Installed Libraries</segtitle>
150 <segtitle>Installed Directories</segtitle>
151
152 <seglistitem>
153 <seg>wish and wish8.4</seg>
154 <seg>libtk.so and libtkstub8.4.a</seg>
155 <seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
156 </seglistitem>
157 </segmentedlist>
158
159 <variablelist>
160 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
161 <?dbfo list-presentation="list"?>
162 <?dbhtml list-presentation="table"?>
163
164 <varlistentry id="wish">
165 <term><command>wish</command></term>
166 <listitem>
167 <para> is a symlink to the <command>wish8.4</command> program.</para>
168 <indexterm zone="tk wish">
169 <primary sortas="g-wish">wish</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="wish8.4">
175 <term><command>wish8.4</command></term>
176 <listitem>
177 <para> is a simple shell containing the
178 <application>Tk</application> toolkit that creates a main window and
179 then processes <application>Tcl</application> commands.</para>
180 <indexterm zone="tk wish8.4">
181 <primary sortas="b-wish8.4">wish8.4</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="libtk">
187 <term><filename role="library">libtk.so</filename></term>
188 <listitem>
189 <para>contains the API functions required
190 by <application>Tk</application>.</para>
191 <indexterm zone="tk libtk">
192 <primary sortas="c-libtk">libtk.so</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 </variablelist>
198
199 </sect2>
200
201</sect1>
Note: See TracBrowser for help on using the repository browser.