Greetings.
I have installed ActiveTcl 8.4.18.0 and TclDevKit 4.0.4 (trial license), I need to generate a executable of my script tcl.
I use tclsh and it works well, but, generating an executable from TclDevKit with the following command:
tclapp.exe -prefix C:\Tcl\bin\base-tk-thread-win32-ix86.exe -out myapp.exe C:\Tcl\demos\Expect\mejorcito.tcl
At the moment I have the following files in C:\Tcl\bin:
base-tcl-thread-win32-ix86.exe
base-tk-thread-win32-ix86.exe
mejorcito.tcl is a script that use expect and below it is the code:
#!/bin/sh
# \
exec tclsh "$0" ${1+"$@"}
# This is required to declare that we will use Expect
package require Expect
# 1. Open a telnet session
spawn telnet 10.0.0.3
I get the following error message:
can't find package Expect while executing "package require Expect" (file "C:/TclDevKit/bin/myapp.exe/lib/application/Tcl/demos/Expect/mejorcito.tcl" line 37) invoked from within "source $startup" (file "C:/TclDevKit/bin/myapp.exe/main.tcl" line 51)
Please help my to find a solution
My email is: bermudezdouglas@hotmail.com
http://community.activestate.com/forum-topic/cant-find-package-expect-1#...