source: general/prog/tk.xml@ 4cf3eb1

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 4cf3eb1 was 4cf3eb1, checked in by Randy McMurchy <randy@…>, 18 years ago

Minor grammar fixes, good catch Archaic

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5464 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 "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 <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"/> or <xref linkend="xorg"/>) and
66 <xref linkend="tcl"/></para>
67
68 </sect2>
69
70 <sect2 role="installation">
71 <title>Installation of Tk</title>
72
73<para>Install <application>Tk</application> by running the following
74commands:</para>
75
76<screen><userinput>export VERSION=&tk-version; &amp;&amp;
77export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
78export DIR=$PWD &amp;&amp;
79cd unix &amp;&amp;
80sed -i "s/relid'/relid/" configure &amp;&amp;
81./configure --prefix=/usr --enable-threads &amp;&amp;
82make &amp;&amp;
83sed -i -e "s:${DIR}/unix:/usr/lib:" \
84 -e "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
85
86 <para>The test is not recommended. Some tests may crash your X Server. To
87 test the results, issue: <command>make test</command>. Ensure you run it
88 from an X Window display device with the GLX extensions loaded, else the
89 tests will hang.</para>
90
91 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
92
93 <caution>
94 <para>If you don't use <command>su</command> to become the
95 <systemitem class="username">root</systemitem> user, ensure you set the
96 environment variables <envar>VERSION</envar> and <envar>V</envar> again
97 before running the installation commands.</para>
98 </caution>
99
100<screen role="root"><userinput>make install &amp;&amp;
101install -v -d /usr/include/tk${V}/unix &amp;&amp;
102install -v -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
103install -v -d /usr/include/tk${V}/generic &amp;&amp;
104install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp;
105rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp;
106ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
107ln -v -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
108ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
109
110 <para>Clean up the unprivileged user's environment using the following
111 commands:</para>
112
113<screen><userinput>unset VERSION &amp;&amp;
114unset V &amp;&amp;
115unset DIR</userinput></screen>
116
117 </sect2>
118
119 <sect2 role="commands">
120 <title>Command Explanations</title>
121
122 <para><parameter>--enable-threads</parameter>: This switch forces the package
123 to build with thread support.</para>
124
125 <para><command>sed -i "s/relid'/relid/" configure</command>: This command
126 fixes a syntax error in the <command>configure</command> script.</para>
127
128 <para><command>sed -i -e ... tkConfig.sh</command>: The
129 <application>Tk</application> package assumes that the source used to build
130 <application>Tk</application> is always kept around for compiling packages
131 that depend on <application>Tk</application>. This <command>sed</command>
132 removes the references to the build directory and replaces them with saner
133 system-wide locations.</para>
134
135 <para><command>install ...</command>: These commands install the internal
136 headers into a system-wide location.</para>
137
138 <para><command>ln -v -sf ...</command>: These commands create compatibility
139 symbolic links.</para>
140
141 </sect2>
142
143 <sect2 role="content">
144 <title>Contents</title>
145
146 <segmentedlist>
147 <segtitle>Installed Programs</segtitle>
148 <segtitle>Installed Libraries</segtitle>
149 <segtitle>Installed Directories</segtitle>
150
151 <seglistitem>
152 <seg>wish and wish8.4</seg>
153 <seg>libtk.so and libtkstub8.4.a</seg>
154 <seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
155 </seglistitem>
156 </segmentedlist>
157
158 <variablelist>
159 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
160 <?dbfo list-presentation="list"?>
161 <?dbhtml list-presentation="table"?>
162
163 <varlistentry id="wish">
164 <term><command>wish</command></term>
165 <listitem>
166 <para> is a symlink to the <command>wish8.4</command> program.</para>
167 <indexterm zone="tk wish">
168 <primary sortas="g-wish">wish</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="wish8.4">
174 <term><command>wish8.4</command></term>
175 <listitem>
176 <para> is a simple shell containing the
177 <application>Tk</application> toolkit that creates a main window and
178 then processes <application>Tcl</application> commands.</para>
179 <indexterm zone="tk wish8.4">
180 <primary sortas="b-wish8.4">wish8.4</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="libtk">
186 <term><filename role="library">libtk.so</filename></term>
187 <listitem>
188 <para>contains the API functions required
189 by <application>Tk</application>.</para>
190 <indexterm zone="tk libtk">
191 <primary sortas="c-libtk">libtk.so</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 </variablelist>
197
198 </sect2>
199
200</sect1>
Note: See TracBrowser for help on using the repository browser.