Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4731917
  • 博文数量: 930
  • 博客积分: 12070
  • 博客等级: 上将
  • 技术积分: 11448
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-15 16:57
文章分类

全部博文(930)

文章存档

2011年(60)

2010年(220)

2009年(371)

2008年(279)

分类: LINUX

2008-12-03 23:06:09

# 创建Tcl
[root@centos5 install\]# cd tcl8.4.19
[root@centos5 tcl8.4.19\]# cd unix/
[root@centos5 unix\]# ./configure --prefix=/toolchain
[root@centos5 unix\]# make
[root@centos5 unix\]# make install
{color:blue}安装Tcl的头文件,让Tcl的一些扩展程序能够被创建{color}
[root@centos5 unix\]# make install-private-headers
Installing private header files
# 创建Expect
[root@centos5 install\]# cd expect-5.43
{color:blue}打补丁,修bug{color}
[root@centos5 expect-5.43\]# patch -Np1 -i ../expect-5.43.0-spawn-1.patch
{panel}patching file exp_chan.c
Hunk #1 succeeded at 622 (offset 103 lines).
patching file exp_command.h
Hunk #1 succeeded at 30 with fuzz 1 (offset 5 lines).
Hunk #2 succeeded at 99 (offset 1 line).
patching file expect.c
Hunk #2 succeeded at 1628 (offset 1 line).
Hunk #4 succeeded at 1730 (offset 1 line).
Hunk #6 succeeded at 2864 (offset 5 lines).
{panel}
{color:blue}为了让Expect能够完全独立,还需要对它的configure文件做些修改{color}
[root@centos5 expect-5.43\]# {color:green}cp configure{,.bak}{color}
[root@centos5 expect-5.43\]# sed 's:/usr/local/bin:/bin:' configure.bak > configure
[root@centos5 expect-5.43\]# ./configure --prefix=/toolchain/ --with-tcl=/toolchain/lib/ --with-tclinclude=/toolchain/include/ --with-x=no
{panel}
................................................
................................................
checking for Tcl_CreateCommand... (cached) yes
checking if Tcl library build specification is valid... yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... yes
checking whether the compiler (gcc) actually works... yes
checking how to run the C preprocessor... (cached) gcc -E
checking if running LynxOS... (cached) no
checking for Tcl private headers... (cached) found in /toolchain/include
updating cache .././config.cache
creating ./config.status
creating Makefile{panel}
[root@microsof-c25986 bin\]# cd /usr/bin
{color:blue}在/usr/bin/下建立一个软链接,使expect可以直接运行{color}
[root@microsof-c25986 bin\]# ln -s /toolchain/bin/expect
[root@microsof-c25986 bin\]# expect
expect1.1>
阅读(3535) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~