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包,是需要指定什么路径吗?还请各位大神赐教 嗯,我也想问这个问题,很奇怪,两个一样的系统,一个可以,一个就不可以:Q refer this link
http://community.activestate.com/faq/where-expect 我也遇到一个类似的问题,请求帮助:
用TCL调用chariotExt.dll文件时,出现下面错误
CHR0329: The GetVersionEx call failed, returning 1.
CHR0332: An internal error has been detected. (2, 6, 1, 7600, 1233988, , , , )
页:
[1]