df110341243 发表于 2013-04-17 19:47

TCL脚本使用引用expect包提示错误can't find package Expect

tcl脚本内容如下:
# cat test.tcl
#!/usr/bin/tclsh
package require Expect

运行结果如下:
# tclsh test.tcl
can't find package Expect
    while executing
"package require Expect"
    (file "test.tcl" line 2)

已经安装过expect
# which expect
/usr/local/bin/expect

我不太知道为什么找不到这个expect包,是需要指定什么路径吗?还请各位大神赐教

melanie0202 发表于 2013-06-14 14:49

嗯,我也想问这个问题,很奇怪,两个一样的系统,一个可以,一个就不可以:Q

wenhq 发表于 2013-06-18 19:09

refer this link
http://community.activestate.com/faq/where-expect

33bubble 发表于 2015-05-13 16:52

我也遇到一个类似的问题,请求帮助:
用TCL调用chariotExt.dll文件时,出现下面错误
CHR0329: The GetVersionEx call failed, returning 1.
CHR0332: An internal error has been detected. (2, 6, 1, 7600, 1233988, , , , )
页: [1]
查看完整版本: TCL脚本使用引用expect包提示错误can't find package Expect