一、要先安装ActiveTcl(目前最新版本8.6.4.0.298892-linux-x86_64-threaded)
去www.activestate.com下载并运行install.sh安装
二、下载expect,执行命令:
1)(ActiveTcl-8.6为上一步安装路径)
./configure --prefix=/usr/expect --with-tcl=/opt/ActiveTcl-8.6/lib --with-tclinclude=/opt/ActiveTcl-8.6/include
2)make
3)make install