2003-10-05 18:13:05 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>Tcl</application></title>
|
|
|
|
|
2004-01-25 15:03:57 +08:00
|
|
|
<note><para>This package is also installed in <acronym>LFS</acronym>
|
|
|
|
during the bootstrap phase. The significant difference between the
|
2004-04-18 22:08:39 +08:00
|
|
|
two installations (other than installing to <filename class="directory">/usr</filename>) is to install
|
2004-01-25 15:03:57 +08:00
|
|
|
the package in such a way that there is no need to keep the build
|
|
|
|
directory around after installation.</para></note>
|
|
|
|
|
2003-10-05 18:13:05 +08:00
|
|
|
<para>Install <application>Tcl</application> by running the following commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>VERSION=&tcl-version; &&
|
2003-11-14 07:28:54 +08:00
|
|
|
V=`echo $VERSION | cut -d "." -f 1,2` &&
|
2003-10-05 18:13:05 +08:00
|
|
|
DIR=$PWD &&
|
|
|
|
cd unix &&
|
|
|
|
./configure --prefix=/usr &&
|
|
|
|
make &&
|
|
|
|
sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
|
|
|
sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
|
|
|
sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh &&
|
2004-02-29 22:41:53 +08:00
|
|
|
mv ../doc/{,Tcl_}Thread.3 &&
|
|
|
|
sed -i 's/ Thread.3/ Tcl_Thread.3/' mkLinks &&
|
2003-10-05 18:13:05 +08:00
|
|
|
make install &&
|
|
|
|
install -d /usr/include/tcl${V}/unix &&
|
|
|
|
install -m644 *.h /usr/include/tcl${V}/unix/ &&
|
|
|
|
install -d /usr/include/tcl${V}/generic &&
|
|
|
|
install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
|
|
|
rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
|
|
|
ln -nsf /usr/include/tcl${V} /usr/lib/tcl${V}/include &&
|
|
|
|
ln -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
|
|
|
ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|