linux Tcl、expect 安装

需要两个安装程序tcl8.4.13-src.tar.gz、expect-5.43.0.tar.gz

下载地址: http://download.chinaunix.net/

1.安装tcl和expect
解压tcl包:tar zxvf tcl8.4.11-src.tar.gz
进入:tcl8.4.11/unix
执行1:./configure
执行2:make
执行3:make install
拷贝:cp tclUnixPort.h  ../generic/

解压expect包:tar zxvf tar zxvf expect-5.43.0.tar.gz
进入:cd expect-5.43/
执行1:./configure --with-tcl=/usr/local/lib/ --with-tclinclude=\ /home/nagios/tcl8.4.11/generic/  --with-x=no
执行2:make
执行3:make install

注意:tclinclude=/tcl源代码路径/generic

查看安装路径
whereis tcl
whereis expect

猜你喜欢

转载自hulu26.iteye.com/blog/980635