mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-06 17:17:20 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1509 af4574ff-66df-0310-9fd7-8a98e5e911e0
27 lines
1.1 KiB
XML
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; &&
|
|
V=`echo $VERSION | cut -d "." -f 1,2` &&
|
|
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 &&
|
|
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>
|