expect依赖tcl库

安装包:

           https://files.cnblogs.com/files/tozh/tcl8.4.11-src.tar.gz

           https://files.cnblogs.com/files/tozh/expect-5.43.0.tar.gz

 

我将两个压缩包传到了/opt/目录下

1,安装tcl

       tar xf tcl8.4.11-src.tar.gz

        cd tcl8.4.11/unix

        ./configure

        make && make install

 

2,安装expect

       tar xf expect-5.43.0.tar.gz

       cd expect-5.43.0

       ./configure --with-tclinclude=/opt/tcl8.4.11/generic --with-tclconfig=/usr/local/lib/

       make && make install

 

--------------------------------------------------------------------------------------------------------------------------------------------------------

参考:http://xstarcd.github.io/wiki/shell/expect_handbook.html

相关文章:

  • 2021-10-18
  • 2021-05-03
  • 2021-11-15
  • 2021-05-20
  • 2021-06-30
  • 2021-05-17
  • 2022-01-11
  • 2021-07-03
猜你喜欢
  • 2021-05-27
  • 2021-05-18
  • 2022-12-23
  • 2021-08-22
  • 2021-06-29
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案