glfs/general/prog/tcl/tcl-inst.xml
Igor Živković 54654bfd4e reverted tcl/tk changes
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1509 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-11-13 23:28:54 +00:00

27 lines
1.1 KiB
XML

<sect2>
<title>Installation of <application>Tcl</application></title>
<para>Install <application>Tcl</application> by running the following commands:
</para>
<screen><userinput><command>VERSION=&tcl-version; &amp;&amp;
V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
DIR=$PWD &amp;&amp;
cd unix &amp;&amp;
./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &amp;&amp;
sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &amp;&amp;
sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh &amp;&amp;
make install &amp;&amp;
install -d /usr/include/tcl${V}/unix &amp;&amp;
install -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
install -d /usr/include/tcl${V}/generic &amp;&amp;
install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &amp;&amp;
rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &amp;&amp;
ln -nsf /usr/include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
ln -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
</sect2>