glfs/general/prog/tk/tk-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

25 lines
976 B
XML

<sect2>
<title>Installation of <application>Tk</application></title>
<para>Install <application>Tk</application> by running the following commands:</para>
<screen><userinput><command>VERSION=&tk-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:" tkConfig.sh &amp;&amp;
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &amp;&amp;
make install &amp;&amp;
install -d /usr/include/tk${V}/unix &amp;&amp;
install -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
install -d /usr/include/tk${V}/generic &amp;&amp;
install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp;
rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp;
ln -nsf /usr/include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
ln -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
</sect2>