Linux下Tcl和expect 的安装

背景介绍

         因搭建游戏中心的测试环境,需要安装两个程序tcl8.4.13-src.tar.gz、expect-5.43.0.tar.gz 

安装方法

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

1.安装tcl 

    解压tcl包:tar zxvf tcl8.4.11-src.tar.gz 

    进入:tcl8.4.11/unix 

    执行1:./configure 

    执行2:make 

    执行3:make install 

    拷贝:cp tclUnixPort.h  ../generic/ 

2.安装expect

    解压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 

猜你喜欢

转载自blog.csdn.net/ieiqny1/article/details/83689060