Perl module expect.pm is not available for windows 64 bit system

1k views Asked by At

I am using Activeperl for my windows 64 bit machine, I want to use expect.pm module for windows 64 bit, but getting these errors:

Can't locate Expect.pm in @INC (you may need to install the Expect module) (@INC contains: D:/Software/eclips/.metadata/.plugins/org.epic.debug 

I have googled it many are saying this module is not supported in windows 64 bit. Can somebody guide me how can I install it, if not so do I need to shift Linux environment?

2

There are 2 answers

4
ikegami On

It won't run on Windows. Expect creates a pseudo-tty to try fool the child program into not buffering its output. Windows doesn't have ttys.

4
Degustaf On

According to CPAN the only way for this to work in Windows is through Cygwin.

This appears to be due to a dependency on IO:tty, which has the same suggestion to use it through Cygwin.