一、 下载源码
tcl8.5 http://tcl.tk/software/tcltk/8.5.html
tclThread2.6 http://core.tcl.tk/thread/info/2e574064a4
二、安装tcl8.5
tar -xvf tcl8.5.9-src.tar.gz
cd tcl8.5.9
cd unix
./configure --prefix=$HOME/tools/tcl8.5.9 --enable-threads
make ; make install
注:要支持tcl多线程必须加编译选项 --enable-threads
三、 安装tclThread2.6
unzip tclthread2.6.zip
cd tclthread2.6
configure --with-tcl=$HOME/sft/tcl8.5.9/unix --prefix=$HOME/tools/tcl8.5.9/lib/tcl8.5
make ; make install
注:编译tclthread2.6时需要配置文件tclconfig,这个配置文件可以从其他安装包中获取 如mysqltcl-3.05/tclconfig。
其实目录tclconfig下有一个安装脚本名