source: general/prog/tcl.xml@ 3b01cdd

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.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 3b01cdd was 3b01cdd, checked in by Randy McMurchy <randy@…>, 20 years ago

Added Contents, Description and a note about setting env vars to the Tcl instructions

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

  • Property mode set to 100644
File size: 4.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!ENTITY tcl-download-http "http://prdownloads.sourceforge.net/tcl/tcl&tcl-version;-src.tar.gz">
8<!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz">
9<!ENTITY tcl-size "3.3 MB">
10<!ENTITY tcl-buildsize "17.1 MB">
11<!ENTITY tcl-time "0.27 SBU">
12
13]>
14
15<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
16<?dbhtml filename="tcl.html"?>
17<title>Tcl-&tcl-version;</title>
18
19<sect2>
20<title>Introduction to <application>Tcl</application></title>
21
22<para>The <application>Tcl</application> package contains the Tool Command
23Language, a robust general-purpose scripting language.</para>
24
25<sect3><title>Package information</title>
26<itemizedlist spacing='compact'>
27<listitem><para>Download (HTTP): <ulink
28url="&tcl-download-http;"/></para></listitem>
29<listitem><para>Download (FTP): <ulink
30url="&tcl-download-ftp;"/></para></listitem>
31<listitem><para>Download size: &tcl-size;</para></listitem>
32<listitem><para>Estimated Disk space required:
33&tcl-buildsize;</para></listitem>
34<listitem><para>Estimated build time:
35&tcl-time;</para></listitem></itemizedlist>
36</sect3>
37
38</sect2>
39
40<sect2>
41<title>Installation of <application>Tcl</application></title>
42
43<note><para>This package is also installed in <acronym>LFS</acronym>
44during the bootstrap phase. The significant difference between the
45two installations (other than installing to
46<filename class="directory">/usr</filename>) is to install
47the package in such a way that there is no need to keep the build
48directory around after installation.</para></note>
49
50<para>Install <application>Tcl</application> by running the following
51commands:</para>
52
53<screen><userinput><command>VERSION=&tcl-version; &amp;&amp;
54V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
55DIR=$PWD &amp;&amp;
56cd unix &amp;&amp;
57./configure --prefix=/usr &amp;&amp;
58make &amp;&amp;
59sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &amp;&amp;
60sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &amp;&amp;
61sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
62 tclConfig.sh &amp;&amp;
63mv ../doc/{,Tcl_}Thread.3 &amp;&amp;
64sed -i 's/ Thread.3/ Tcl_Thread.3/' mkLinks &amp;&amp;
65make install &amp;&amp;
66install -d /usr/include/tcl${V}/unix &amp;&amp;
67install -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
68install -d /usr/include/tcl${V}/generic &amp;&amp;
69install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &amp;&amp;
70rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &amp;&amp;
71ln -nsf /usr/include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
72ln -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
73ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
74
75<note><para>If you build the package as one user, then switch to root to
76install the package, ensure you set the environment variables
77<envar>V</envar> and <envar>VERSION</envar> before running the installation
78commands.</para></note>
79
80</sect2>
81
82<sect2>
83<title>Command explanations</title>
84
85<para><command>sed -i ...</command>: The <application>Tcl</application>
86package assumes that the source that is used to build
87<application>Tcl</application> is always kept around for compiling packages
88that depend on <application>Tcl</application>. These <command>sed</command>'s
89remove the reference to the build directory and replace them by saner system
90wide locations.</para>
91
92<para><command>install ...</command>: These commands install the internal
93headers into a system-wide location.</para>
94
95<para><command>ln -sf ...</command>: These commands create compatibility
96symbolic links.</para>
97</sect2>
98
99<sect2>
100<title>Contents</title>
101
102<para>The <application>Tcl</application> package contains
103<command>tclsh</command> and the
104<filename class='libraryfile'>libtcl</filename> libraries.</para>
105
106</sect2>
107
108<sect2><title>Description</title>
109
110<sect3><title>tclsh</title>
111<para><command>tclsh</command> is a simple shell containing the
112<application>Tcl</application> interpreter.</para></sect3>
113
114</sect2>
115
116</sect1>
Note: See TracBrowser for help on using the repository browser.