|
Expect is built up in tcl basis, so you need to install before installing expect tcl
Install TCL
Download: http: //www.tcl.tk/software/tcltk/download.html
[Root @ test ~] # cd / tools /
[Root @ test tools] # wget http://prdownloads.sourceforge.net/tcl/tcl8.5.19-src.tar.gz
[Root @ test tools] # tar xftcl8.5.19-src.tar.gz
[Root @ test tools] # cdtcl8.5.19 / unix /
[Root @ test unix] #. / Configure
[Root @ test unix] # make
[Root @ test unix] # makeinstall
[Root @ test unix] # cd
Install expect
Official website: http: //expect.sourceforge.net/
[Root @ test ~] # cd / tools /
[Root @ test tools] # wgethttp: //nchc.dl.sourceforge.net/project/expect/Expect/5.45/expect5.45.tar.gz
[Root @ test tools] # tar xfexpect5.45.tar.gz
[Root @ test tools] # cdexpect5.45
[Root @ test expect5.45] #. / Configure --with-tcl = / usr / local / lib / --with-tclinclude = /
tools / tcl8.5.19 / generic /
[Root @ test expect5.45] # make
[Root @ test expect5.45] # makeinstall
[Root @ test expect5.45] # cd
[Root @ mysql-master ~] # whichexpect
/ Usr / local / bin / expect |
|
|
|