Linux Tcl和Expect的安装

一、先安装Tcl
1、下载:tcl版本 8.4.19
http://sourceforge.net/projects/tcl/files/Tcl/8.4.19/tcl8.4.19-src.tar.gz/download

2、解压缩源码包
tar xfvz tcl8.4.19-src.tar.gz

3、安装配置
#cd tcl8.4.19/unix
#./configure --prefix=/usr/local/tcl --enable-shared
#make
#make install

4、子目录unix下面的tclUnixPort.h 复制到generic中
#cp tcl8.4.19/unix/tclUnixPort.h tcl8.4.19/generic/

5、创建软链接
#ln -s /usr/local/tcl/bin/tcl8.4 /usr/bin/tclsh

二、后安装expect
1、下载expect版本5.43:
http://download.chinaunix.net/download/0003000/2845.shtml

2、解压缩源码包
tar -xvf expect5.43.tar.gz

3、安装配置
#cd expect5.43
#./configure --prefix=/usr/local/expect --with-tcl=/usr/local/tcl/lib --with-tclinclude=../tcl8.4.19/generic
#make
#make install
#ln -s /usr/local/tcl/bin/expect /usr/local/expect/bin/expect

5、创建链接到/bin下
#ln -s /usr/local/expect/bin/expect /usr/bin/expect
注意:如果已经存在/usr/bin/expect,请备份原来的expect文件,再删除,然后创建expect的软链接

三、完成,测试
  #expect
  expect1.1>

时间: 2024-09-02 17:49:35

Linux Tcl和Expect的安装的相关文章

linux tcl expect 安装(转)

linux tcl expect 安装 一.Tcl安装 1.  下载:tcl8.4.20-src.tar.gz http://www.tcl.tk/software/tcltk/downloadnow84.tml 2.解压缩源码包       tar xfvz tcl8.4.20-src.tar.gz 3.安装配置       cd tcl8.4.20/unix       ./configure --prefix=/usr/local/tcl --enable-shared       mak

[转]expect的安装

转自:http://blog.chinaunix.net/uid-20639775-id-2453085.html Expect是在Tcl基础上创建起来的,它还提供了一些Tcl所没有的命令,它可以用来做一些linux下无法做到交互的一些命令操作,在远程管 理方面发挥很大的作用. spawn命令激活一个Unix程序来进行交互式的运行. send命令向进程发送字符串. expect 命令等待进程的某些字符串. expect支持正规表达式并能同时等待多个字符串,并对每一个字符串执行不同的操作. A.

在Linux CentOS 6.6上安装Python 2.7.9

在Linux CentOS 6.6上安装Python 2.7.9 CentOS 6.6自带的是Python 2.6.6,而编译llvm需要Python 2.7以上. checking for python... /usr/bin/python checking for python >= 2.7... not found configure: error: found python 2.6.6 (/usr/bin/python); required >= 2.7 yum中最新的也是Python

Linux下非root用户安装软件

下面简要说一下Linux下非root用户安装软件的一般流程:1. 获取源代码,一般是wget方式,ubuntu可以使用apt-get source来获取源代码.2. 解压源代码,一般使用tar -zxvf xxx.tar.gz即可3. 切换到解压后的目录,运行 ./configure.其选项可以通过 ./configure –help来获取,非root用户下最重要的应该是定义安装目录,即应该定义 ./configure –prefix=/path/to/bin, 对于一些依赖库,可能还需要使用

linux源码包的安装

一.基础知识    编译源程序的步骤:     # tar xf testapp-version.tar.{xz|bz2|gz}     # cd testapp-version     # ./configure      还需通过许多选项指定编译特性     # make     # make install    ./configure脚本的使用:     1.获取帮助      ./configure --help     2.较通用的一些选项      安装路径相关:       --

Linux( rhel-server-7.0-x86_64)安装Oracle Database 12c Release 1

1.官方下载安装包:http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html linuxamd64_12102_database_1of2.zip linuxamd64_12102_database_1of2.zip 2.创建oracle用户和组 [[email protected]]# groupadd oinstall [[email protected]]# groupadd dba

在 Linux 系统上源码安装 GTK+ 2.0

在 Linux 系统上源码安装 GTK+ 2.0==================================================Keywords: GTK+, Install, Linux, SourceAuthor:       whyglinux (whyglinux AT hotmail DOT com)Date:          2007-01-07==================================================目录0. 前言1.

Linux学习笔记——虚拟机中安装VMware Tools

0 前言 VMware Tools是VMware虚拟机中自带的一种增强工具,只有在VMware虚拟机中安装好了VMware Tools,才能实现主机与虚拟机之间的文件共享,实现文件在虚拟机之间的复制粘贴. 最近购买了周立功的一款EasyARM开发板,作为树莓派Linux学习的补充.在虚拟机中安装了周立功提供的ubuntu镜像,总觉得在主机和PC机之间直接复制粘贴才爽,所以又安装了Vmware Tools.     [相关博文] [ Linux学习笔记--vmware plarer中安装ubunt

Oracle 10g 10.2.0.1 在Oracle Linux 5.4 32Bit RAC安装手冊(一抹曦阳)

Oracle 10g 10.2.0.1 在Oracle Linux 5.4 32Bit RAC安装手冊(一抹曦阳).pdf下载地址 ,step by step http://download.csdn.net/detail/rlhua/7699223