expect的安装
来源:互联网 发布:vb 双引号转义字符 编辑:程序博客网 时间:2024/05/20 21:43
转自:http://bluethink.iteye.com/blog/1079044
第4步:安装tcl
进入/soft/tcl8.4.11/unix 目录a.执行sed -i "s/relid'/relid/" configure
b.执行./configure --prefix=/expect
c.执行make
d.执行make install
e.执行mkdir -p /tools/lib
f.执行cp tclConfig.sh /tools/lib/
g. 将/tools/bin目录export到环境变量
tclpath=/tools/bin
export tclpath
第5步:安装Expect
进入/soft/expect-5.43目录
执行./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no
如果最后一行提示:
configure: error: Can't find Tcl private headers
需要添加一个头文件目录参数
--with-tclinclude=../tcl8.4.11/generic,即
./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no --with-tclinclude=../tcl8.4.11/generic
../tcl8.4.11/generic 就是tcl解压安装后的路径,一定确保该路径存在
执行make
执行make install
编译完成后会生在/tools/bin内生成expect命令
执行/tools/bin/expect出现expect1.1>提示符说明expect安装成功.
第6步:创建一个符号链接
ln -s /tools/bin/expect /usr/bin/expect
查看符号连接
ls -l /usr/bin/expect
lrwxrwxrwx 1 root root 17 06-09 11:38 /usr/bin/expect -> /tools/bin/expect
这个符号链接将在编写expect脚本文件时用到,例如在expect文件头部会指定用于执行该脚本的shell
#!/usr/bin/expect
...
...
0 0
- expect的安装使用
- expect 的安装
- LINUX EXPECT的安装
- expect的安装
- expect的安装
- expect的源码安装方法
- 安装expect
- expect安装
- 安装expect
- expect 安装
- expect 安装
- expect安装
- expect安装
- 安装expect
- expect安装
- expect安装
- expect 安装
- linux下expect的安装方法
- leetcode 每日一题 21. Merge Two Sorted Lists
- Gradle使用小结
- 关于UIMenuController的用法例子
- hadoop Balance 优化
- Android学习之解决ScrollView嵌套ListView显示的错误
- expect的安装
- Linux下history命令用法
- Scala之高阶函数
- Google cardBoard Android API (十):HeadMountedDisplay
- Android动画分类和详解
- Processing UDP 服务端 客户端 程序代码
- Form触发器的执行顺序
- Oracle数据库中的空值
- LINUX SSH 管理与监控