[Bug 1582] tcl-8.4.11 & tk-8.4.11 environment settings

blfs-bugs at linuxfromscratch.org blfs-bugs at linuxfromscratch.org
Sun Sep 11 10:03:11 PDT 2005


http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=1582





------- Additional Comments From b3nt at ukonline.co.uk  2005-09-11 11:03 -------
An alternative approach might be to put the variables in a file. It has the
advantage that it doesn't depend on becoming root with su. Like this

echo VERSION=8.4.11 > /tmp/details &&
echo 'V=`echo $VERSION | cut -d "." -f 1,2`' >> /tmp/details &&
echo DIR=`pwd` >> /tmp/details &&
source /tmp/details &&
cd unix &&
./configure --prefix=/usr --enable-threads &&
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

Then as root

source /tmp/details &&
make install &&
install -v -d /usr/include/tcl${V}/unix &&
install -v -m644 *.h /usr/include/tcl${V}/unix/ &&
install -v -d /usr/include/tcl${V}/generic &&
install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
ln -v -sf libtcl${V}.so /usr/lib/libtcl.so &&
ln -v -sf tclsh${V} /usr/bin/tclsh



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.



More information about the blfs-book mailing list