linux 安裝 expect tcl__linux

來源:互聯網
上載者:User
簡介

Linux 上expect 在做SSH通路的時候,是非常不錯的東西,那麼怎麼安裝呐。

安裝方式有三種,yum命令(有網路的情況);tar安裝包(麼有網路);rpm 包安裝(麼有網路)


yum安裝

       yum install  expect

       yum install expect-devel

       yum install tcl

如此之後,就可以正常使用expect tcl 了


tar安裝

expect版本 5.43

http://download.chinaunix.net/download/0003000/2845.shtml

tcl版本 8.4.19

http://sourceforge.net/projects/tcl/files/Tcl/8.4.19/tcl8.4.19-src.tar.gz/download

下載兩個包,分別解壓

1。先安裝tcl

  進入tcl解壓目錄,然後進入unix目錄

  #./configure

  #make

  #make install

2.後安裝expect

  進入expect解壓目錄

  #./configure --with-tclinclude=/usr/src/tcl8.4.19/generic/ --with-tclconfig=/usr/local/lib/

  #make

  #make install

完成,測試

  #expect

  expect1.1> 
  expect1.1>

一切OK
rpm 包安裝

下載 expect-5.44.1.15-4.el6.x86_64.rpm 和 tcl-8.5.7-6.el6.x86_64.rpm 包, 這個在網路上有,也可以在:

 http://download.csdn.net/detail/supingemail/8849737 下載.


之後,就可以順溜的使用expect 了.




相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.