步骤:
先下载tcl
mkdir /home/mmt/softcd /home/mmt/soft
解压并安装
下载expecttar zxvf tcl8.4.19-src.tar.gzcd tcl8.4.19/unix #进入unix目录./configure #安装make #安装make install #安装
cd /home/mmt/softwget http://pkgs.fedoraproject.org/repo/pkgs/expect/expect-5.43.0.tar.gz/230400129630335b3060a42f66fec11d/expect-5.43.0.tar.gz
解压并安装
tar zxvf expect-5.43.0.tar.gzcd expect-5.43./configure --with-tclinclude=/home/mmt/soft/tcl8.4.19/generic/ --with-tclconfig=/usr/local/lib/#注意上面的 --with-tclinclude 为tcl的源码路径, --with-tclconfig 为tcl安装后的路径makemake install