source: general/prog/tk.xml@ 1039de3

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

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #3

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

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