linux上安装tcl、tk、expect

linux上安装tcl、tk、expect  

1
、tcl安装tcl8.5.9-src.tar.gz cd /tmp tar -zxvf tcl8.5.9-src.tar.gz cd tcl8.5.9/unix/ ./configure --prefix=/usr/local/tcl/ --enable-shared make make install /usr/local/tcl/bin/tclsh8.5 %exit 2、tk安装tk8.5.9-src.tar.gz cd /tmp tar -zxvf tk8.5.9-src.tar.gz cd tk8.5.9/unix/ ./configure --prefix=/usr/local/tk/ --with-tcl=/usr/local/tcl/lib/ --enable-shared make make install ln -s /usr/local/tcl/lib/libtcl8.5.so /usr/local/tk/lib/libtcl8.5.so /usr/local/tk/bin/wish8.5 %exit 3、expect安装expect-5.44.1.15.tar.gz cd /tmp tar -zxvf expect-5.44.1.15.tar.gz cd expect-5.44.1.15 ./configure --prefix=/usr/local/expect/ --with-tcl=/usr/local/tcl/lib/ --with-tclinclude=/tmp/tcl8.5.9/generic/ --with-tk=/usr/local/tk/lib/ --with-tkinclude=/tmp/tk8.5.9/generic/ --enable-shared make make install expect expect1.1> exit 这样就可以开始运行expect脚本了。

 

你可能感兴趣的:(linux上安装tcl、tk、expect)