source: general/prog/tk.xml@ daa8f42

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

Added a note to the Tcl and Tk instructions to ensure the environment variables are properly set

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

  • Property mode set to 100644
File size: 6.4 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 </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
70commands:</para>
71
72<screen><userinput>export VERSION=&tk-version; &amp;&amp;
73export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
74export DIR=$PWD &amp;&amp;
75cd unix &amp;&amp;
76./configure --prefix=/usr --enable-threads &amp;&amp;
77make &amp;&amp;
78sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &amp;&amp;
79sed -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 &amp;&amp;
96install -v -d /usr/include/tk${V}/unix &amp;&amp;
97install -v -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
98install -v -d /usr/include/tk${V}/generic &amp;&amp;
99install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp;
100rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp;
101ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
102ln -v -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
103ln -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 &amp;&amp;
109unset V &amp;&amp;
110unset 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>
Note: See TracBrowser for help on using the repository browser.