LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1587|回复: 19

帮忙看看,安装expect 出错

[复制链接]
发表于 2004-2-4 19:39:41 | 显示全部楼层 |阅读模式
 楼主| 发表于 2004-2-4 19:40:50 | 显示全部楼层

回复: 帮忙看看,安装expect 出错

./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no
configuring Expect 5.40.0
checking for autoconf... yes
checking configure up to date... yes
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking shell to use within Make...
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking for building with threads... no (default)
checking for Tcl configuration... found /tools/lib/tclConfig.sh
checking Tcl build library... -L/mnt/hda2/sources/tcl8.4b2/unix -ltcl8.4 -ldl  -lieee -lm
checking for Tcl_CreateCommand... yes
checking if Tcl library build specification is valid... yes
checking for Tk configuration... configure: warning: Can't find Tk configuration definitions
checking for Tk_Init... no
checking if Tk library build specification is valid... no
checking whether the compiler (gcc -pipe) actually works... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -pipe -E
checking if running LynxOS... no
checking for ANSI C header files... yes
checking for pid_t... yes
checking return type of signal handlers... void
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking if running Mach... no
checking if running MachTen... no
checking if on Pyramid... no
checking if on Apollo... no
checking if on Interactive... no
checking if stty reads stdout... no
checking if running Solaris... no
checking for sin... no
checking for Tcl private headers... checking for tclInt.h... no
configure: error: Can't find Tcl private headers
发表于 2004-2-4 19:43:44 | 显示全部楼层

回复: 回复: 帮忙看看,安装expect 出错

最初由 X10er 发表

兄弟没有删除tcl的源码目录吧。
重要: 不要删除tcl8.4.5 源码目录,因为下一个软件包还需要源码中的头文件。
 楼主| 发表于 2004-2-4 19:46:25 | 显示全部楼层
??
是应该删还是不删??

我没有删除啊,按照lfs 5 的步骤一直安装下来的,中途没有删除任何东西的啊
发表于 2004-2-4 19:53:26 | 显示全部楼层
最初由 X10er 发表
??
是应该删还是不删??

我没有删除啊,按照lfs 5 的步骤一直安装下来的,中途没有删除任何东西的啊


  1. checking for Tcl private headers... checking for tclInt.h... no
复制代码

在expect成功安装前不能删除tcl的源码目录。
很明显,expect找不到tcl的头文件。兄弟重装tcl试试看。
 楼主| 发表于 2004-2-4 19:54:11 | 显示全部楼层
安装tcl的步骤:
cd unix
./configure --prefix=/tools

make

make install

ln -s tclsh8.4 /tools/bin/tclsh

这个应该没有错吧
发表于 2004-2-4 19:56:44 | 显示全部楼层
是不是tcl跟expect没有放在同一个目录上面呢?
前面也有兄弟是没有放在同一个目录上面,所以出错了。
发表于 2004-2-4 19:58:00 | 显示全部楼层
最初由 小丑奇兵 发表
是不是tcl跟expect没有放在同一个目录上面呢?
前面也有兄弟是没有放在同一个目录上面,所以出错了。


嗯嗯。。。
 楼主| 发表于 2004-2-4 20:06:18 | 显示全部楼层
我是将tcl 和expect 解开都放在同一级的两个目录里啊

我把tcl 和expect 都解开,放到了sources目录里的叫做tcl 和expect的两个目录里
 楼主| 发表于 2004-2-4 20:25:16 | 显示全部楼层
这样放置没有问题吧,或者应该用不同的放置方法??
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表