First, the installation of TCL
1. Download: Tcl version 8.4.19
Http://sourceforge.net/projects/tcl/files/Tcl/8.4.19/tcl8.4.19-src.tar.gz/download
2. Unzip the source package
Tar xfvz tcl8.4.19-src.tar.gz
3. Installation Configuration
#cd Tcl8.4.19/unix
#./configure--PREFIX=/USR/LOCAL/TCL--enable-shared
#make
#make Install
4. Sub-directory Unix tclUnixPort.h copied to generic
#cp tcl8.4.19/unix/tclunixport.h tcl8.4.19/generic/
5. Create a soft link
#ln-S/usr/local/tcl/bin/tcl8.4/usr/bin/tclsh
Second, after the installation of expect
1. Download expect version 5.43:
Http://download.chinaunix.net/download/0003000/2845.shtml
2. Unzip the source package
TAR-XVF expect5.43.tar.gz
3. Installation Configuration
#cd expect5.43
#./configure--prefix=/usr/local/expect--with-tcl=/usr/local/tcl/lib--with-tclinclude=. /tcl8.4.19/generic
#make
#make Install
#ln-S/usr/local/tcl/bin/expect/usr/local/expect/bin/expect
5. Create a link to the/bin
#ln-S/usr/local/expect/bin/expect/usr/bin/expect
Note: If/usr/bin/expect already exists, back up the original expect file, delete it, and then create the expect soft link
Third, complete, test
#expect
Expect1.1>
Installation of Linux Tcl and expect