Package 'Expect' for AutoPilot on Windows
Posted: 07 Feb 2010 00:38
Hi all,
Whilst trying to set up AutoPilot for Windows, I've stumbled upon an error.
Background:
I checked out the source for AutoPilot, then I started to get all the needed packages. I've already installed ActiveTCL, with success. Then, I went into my MinGW/MSYS bash and typed "./autopilot.tcl", which is where I got the error:
It's easy enough to understand what this error meant, just that I don't have Expect installed in a place that MSYS could find/understand. Then, I was told to go to a help page called "Where is Expect?" to look for help. I read some of the comments and found one that was helpful, it told me to type the following in normal command:
This installed Expect, but MSYS still could not find this installation. After this, I did a system-wide search for "Expect" and found the installation location from the teacup command. I then added this installation location to my $PATH environment variable. Still no good.
After that is when I took a new approach...double-clicking on autopilot.tcl to try and start it. It worked much better then in MSYS, the error complaining about the package Expect was gone and it moved on to other errors which I proceeded to fix (see attached diff below for one fix for Windows systems). It worked well, I was even able to run a test server.
Question: After all this, here is my question. Does anyone know of a way to get the Expect package installed and working in an MSYS enviornment? I would prefer MSYS then regular TCL, but then I can have debug outputs in the MSYS window.
Thanks, Peter
Credits: Big thanks to Ammler on IRC today, without his help I wouldn't have gotten anywhere. Also thanks to people at #openttd.
Whilst trying to set up AutoPilot for Windows, I've stumbled upon an error.
Background:
I checked out the source for AutoPilot, then I started to get all the needed packages. I've already installed ActiveTCL, with success. Then, I went into my MinGW/MSYS bash and typed "./autopilot.tcl", which is where I got the error:
Code: Select all
can't find package Expect
while executing
"package require Expect"
(file "./autopilot.tcl" line 23)
Code: Select all
teacup install Expect
After that is when I took a new approach...double-clicking on autopilot.tcl to try and start it. It worked much better then in MSYS, the error complaining about the package Expect was gone and it moved on to other errors which I proceeded to fix (see attached diff below for one fix for Windows systems). It worked well, I was even able to run a test server.
Question: After all this, here is my question. Does anyone know of a way to get the Expect package installed and working in an MSYS enviornment? I would prefer MSYS then regular TCL, but then I can have debug outputs in the MSYS window.
Thanks, Peter
Credits: Big thanks to Ammler on IRC today, without his help I wouldn't have gotten anywhere. Also thanks to people at #openttd.