source: general/prog/tk.xml@ 85eca89b

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

Updated the installed directories in the Tcl and Tk instructions

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

  • Property mode set to 100644
File size: 7.0 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 "0a16d4d9398e43cbb85784c85fb807a4">
11 <!ENTITY tk-size "3.2 MB">
12 <!ENTITY tk-buildsize "23.3 MB">
13 <!ENTITY tk-time "0.4 SBU">
14 <!-- Ensure this is updated when Tk moves to the 8.5.x branch -->
15 <!ENTITY tk-ver "8.4">
16 <!-- Ensure the above is updated when Tk moves to the 8.5.x branch -->
17]>
18
19<sect1 id="tk" xreflabel="Tk-&tk-version;">
20 <?dbhtml filename="tk.html"?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 <keywordset>
26 <keyword role="package">tk&tk-version;-src.tar</keyword>
27 <keyword role="ftpdir">tk</keyword>
28 </keywordset>
29 </sect1info>
30
31 <title>Tk-&tk-version;</title>
32
33 <indexterm zone="tk">
34 <primary sortas="a-Tk">Tk</primary>
35 </indexterm>
36
37 <sect2 role="package">
38 <title>Introduction to Tk</title>
39
40 <para>The <application>Tk</application> package contains a
41 TCL GUI Toolkit.</para>
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &tk-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &tk-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &tk-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &tk-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
66
67 <bridgehead renderas="sect4">Required</bridgehead>
68 <para role="required"><xref linkend="x-window-system"/> and
69 <xref linkend="tcl"/></para>
70
71 <para condition="html" role="usernotes">User Notes:
72 <ulink url="&blfs-wiki;/tk"/></para>
73
74 </sect2>
75
76 <sect2 role="installation">
77 <title>Installation of Tk</title>
78
79<para>Install <application>Tk</application> by running the following
80commands:</para>
81
82<!-- This is removed per discussion and fairly vigorous testing
83sed -i -e "s:${PWD}:/usr/lib:" \
84 -e "s:$(dirname ${PWD}):/usr/include/tk&tk-ver;:" \
85 tkConfig.sh</userinput></screen>
86-->
87
88<screen><userinput>cd unix &amp;&amp;
89./configure --prefix=/usr --enable-threads &amp;&amp;
90make</userinput></screen>
91
92 <para>Running the tests is not recommended. Some tests may crash your X
93 Server. To test the results anyway, issue: <command>make test</command>.
94 Ensure you run it from an X Window display device with the GLX extensions
95 loaded, else the tests will hang.</para>
96
97 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
98
99<screen role="root"><userinput>make install &amp;&amp;
100make install-private-headers &amp;&amp;
101ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
102
103<!-- This is removed per discussion and fairly vigorous testing
104install -v -m755 -d /usr/include/tk&tk-ver;/{unix,generic} &amp;&amp;
105install -v -m644 *.h /usr/include/tk&tk-ver;/unix/ &amp;&amp;
106install -v -m644 ../generic/*.h /usr/include/tk&tk-ver;/generic/ &amp;&amp;
107rm -v -f /usr/include/tk&tk-ver;/generic/tk{,{,Plat}Decls}.h &amp;&amp;
108ln -v -nsf ../../include/tk&tk-ver; /usr/lib/tk&tk-ver;/include &amp;&amp;
109ln -v -sf libtk&tk-ver;.so /usr/lib/libtk.so &amp;&amp;
110ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
111-->
112
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
118 <para><parameter>--enable-threads</parameter>: This switch forces the
119 package to build with thread support.</para>
120
121 <para><command>make install-private-headers</command>: This command is
122 used to install the <application>Tk</application> library interface
123 headers used by other packages if they link to the
124 <application>Tk</application> library.</para>
125
126 <para><command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
127 command is used to create a compatibility symbolic link to the
128 <command>wish&tk-ver;</command> file as many packages expect a file
129 named <command>wish</command>.</para>
130
131 <!-- This is removed per discussion and fairly vigorous testing
132 <para><command>sed -i -e ... tkConfig.sh</command>: The
133 <application>Tk</application> package expects that its source tree is
134 preserved so that packages depending on it for their compilation
135 can utilize it. This <command>sed</command> removes the references to the
136 build directory and replaces them with saner 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
145 </sect2>
146
147 <sect2 role="content">
148 <title>Contents</title>
149
150 <segmentedlist>
151 <segtitle>Installed Programs</segtitle>
152 <segtitle>Installed Libraries</segtitle>
153 <segtitle>Installed Directories</segtitle>
154
155 <seglistitem>
156 <seg>wish and wish&tk-ver;</seg>
157 <seg>libtk.so and libtkstub&tk-ver;.a</seg>
158 <seg>/usr/lib/tk&tk-ver;</seg>
159 </seglistitem>
160 </segmentedlist>
161
162 <variablelist>
163 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
164 <?dbfo list-presentation="list"?>
165 <?dbhtml list-presentation="table"?>
166
167 <varlistentry id="wish">
168 <term><command>wish</command></term>
169 <listitem>
170 <para> is a symlink to the <command>wish&tk-ver;</command>
171 program.</para>
172 <indexterm zone="tk wish">
173 <primary sortas="g-wish">wish</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="wish-eight">
179 <term><command>wish&tk-ver;</command></term>
180 <listitem>
181 <para> is a simple shell containing the
182 <application>Tk</application> toolkit that creates a main window and
183 then processes <application>Tcl</application> commands.</para>
184 <indexterm zone="tk wish-eight">
185 <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry id="libtk">
191 <term><filename role="library">libtk.so</filename></term>
192 <listitem>
193 <para>contains the API functions required
194 by <application>Tk</application>.</para>
195 <indexterm zone="tk libtk">
196 <primary sortas="c-libtk">libtk.so</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 </variablelist>
202
203 </sect2>
204
205</sect1>
Note: See TracBrowser for help on using the repository browser.