About | Home | Search


HOWTO: tk
Description: Tk toolkit for Tcl
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# tk 8.4.18
# =========
# Slackware 9.0's 'tk' package includes version 8.4.2, 9.1's includes 8.4.4,
# 10.0, 10.1's includes 8.4.6, 10.2's includes 8.4.11, 11.0's includes
# 8.4.13, and 12.0's includes 8.4.15

# Prerequisites:
# tcl
# XFree86 or X.org

# If you want to build a threaded tk add --enable-threads to the configure
# lines below

cd
test -f installed/tk8.4.18-src.tar.gz && mv installed/tk8.4.18-src.tar.gz .
test ! -f tk8.4.18-src.tar.gz &&
 wget http://downloads.sf.net/tcl/tk8.4.18-src.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "tk?.*.*" -exec rm -r {} \;
tar xzvf ~/tk8.4.18-src.tar.gz
cd tk8.4.18
test $UID = 0 && chown -R root:root .
cd unix
./configure --prefix=/usr --enable-man-symlinks --disable-shared
make
su -c "test -x /sbin/removepkg && /sbin/removepkg tk ; make install"
make clean
./configure --prefix=/usr --enable-man-symlinks --enable-shared
make

# Become root to install it
su

make install
( cd /usr/bin ; rm -f wish ; ln -sf wish8.4 wish )
( cd /usr/lib
  rm -f libtk.a libtk.so libtkstub.a
  ln -sf libtk8.4.a libtk.a
  ln -sf libtk8.4.so libtk.so
  ln -sf libtkstub8.4.a libtkstub.a )

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/tk*-src.tar.*
mv tk8.4.18-src.tar.gz installed/

Back to the list


Last updated: Fri, 26 Mar 2010 13:18:56 -0400
Jason Englander <jason at englanders dot us>