mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-07 01:27:16 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1322 af4574ff-66df-0310-9fd7-8a98e5e911e0
25 lines
976 B
XML
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; &&
|
|
V=`echo $VERSION | cut -d "." -f 1,2` &&
|
|
DIR=$PWD &&
|
|
cd unix &&
|
|
./configure --prefix=/usr &&
|
|
make &&
|
|
sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
|
|
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &&
|
|
make install &&
|
|
install -d /usr/include/tk${V}/unix &&
|
|
install -m644 *.h /usr/include/tk${V}/unix/ &&
|
|
install -d /usr/include/tk${V}/generic &&
|
|
install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
|
rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
|
ln -nsf /usr/include/tk${V} /usr/lib/tk${V}/include &&
|
|
ln -sf libtk${V}.so /usr/lib/libtk.so &&
|
|
ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
|
|
|
|
</sect2>
|