RHEL6非交互式工具sshpass和expect安装

RHEL6非交互式工具sshpass和expect安装

1 sshpass

在rhel6.4上,没有sshpass的软件包,无法采用yum方式安装。从源码编译安装非常简单。

1) 下载sshpass源码:

http://sourceforge.net/projects/sshpass/

2) 编译安装

$  tar -zxf sshpass-1.05.tar.gz

$ cd sshpass-1.05

$ ./configure

$ make && make install

2 expect

1) 下载expect-5.45源码

http://sourceforge.net/projects/expect/files/Expect/5.45/

2) 安装tcl-devel

$ yum install tcl-devel

3) 编译安装

$ cd expect5.45

$ ./configure

##### $ ./configure --with-tcl=/usr/lib64 --with-tclinclude=/usr/include/tcl-private/generic

$ make && make install

$ ln -s /usr/lib/expect5.45/libexpect5.45.so ./libexpect5.45.so

上一篇:LeadTools答题卡识别方案


下一篇:Asp.net - The type or namespace name 'App_Code' does not exist in the namespace 'xxx' (are you missing an assembly reference?)