When I try to install IO::Tty in cygwin environment, it gets stuck at "trying to open /dev/tty?..." each time.

The first time I tried it got stuck at:

"trying to open /dev/tty1...".

When I aborted, and retried, it got stuck at:

"trying to open /dev/tty2..."

Each time I abort and retry the tty number goes up - tty3, tty4 etc.

(see log snippet at the end)

Given my limited knowledge of unix, I tried this:

ln -s /dev/stdout /dev/tty5

where 5 was the next tty number that it would get hung at duing the next attempt. It still got hung at tty5. In other words the symbolic link did not help.

I am running the latest version of cygwin v1.7.9. I need to install IO::Tty so that perl module Expect can be installed.

I'm really out of ideas. Your help will be much appreciated.

: Writing IO::Tty::Constant.pm... DEFINE = -DHAVE_CYGWIN -DHAVE_DEV_PTMX -DHAVE_GRANTPT -DHAVE_OPENPTY - +DHAVE_POSIX_OPENPT -DHAVE_PTSNAME -DHAVE_PTY_H -DHAVE_SIGACTION -DHAV +E_STRLCPY -DHAVE_TERMIOS_H -DHAVE_TERMIO_H -DHAVE_TTYNAME -DHAVE_UNLO +CKPT Checking if your kit is complete... Looks good Writing Makefile for IO::Tty cp Tty.pm blib/lib/IO/Tty.pm cp Tty/Constant.pm blib/lib/IO/Tty/Constant.pm cp Pty.pm blib/lib/IO/Pty.pm /usr/bin/perl.exe /usr/lib/perl5/5.10/ExtUtils/xsubpp -typemap /usr/l +ib/perl5/5.10/ExtUtils/typemap Tty.xs > Tty.xsc && mv Tty.xsc Tty.c gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLIB -O3 -D +VERSION=\"1.08\" -DXS_VERSION=\"1.08\" "-I/usr/lib/perl5/5.10/i686-c +ygwin/CORE" -DHAVE_CYGWIN -DHAVE_DEV_PTMX -DHAVE_GRANTPT -DHAVE_OPEN +PTY -DHAVE_POSIX_OPENPT -DHAVE_PTSNAME -DHAVE_PTY_H -DHAVE_SIGACTION +-DHAVE_STRLCPY -DHAVE_TERMIOS_H -DHAVE_TERMIO_H -DHAVE_TTYNAME -DHAVE +_UNLOCKPT Tty.c rm -f blib/arch/auto/IO/Tty/Tty.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,- +-stack,8388608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack- +protector Tty.o -o blib/arch/auto/IO/Tty/Tty.dll \ /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -lutil + \ chmod 755 blib/arch/auto/IO/Tty/Tty.dll test -s Tty.bs && cp Tty.bs blib/arch/auto/IO/Tty/Tty.bs && \ chmod 644 blib/arch/auto/IO/Tty/Tty.bs Manifying blib/man3/IO.Tty.Constant.3pm Manifying blib/man3/IO.Tty.3pm Manifying blib/man3/IO.Pty.3pm RGIERSIG/IO-Tty-1.08.tar.gz make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl.exe "-Iblib/lib" "-Iblib/arch" test.pl 1..4 Configuration: -DHAVE_CYGWIN -DHAVE_DEV_PTMX -DHAVE_GRANTPT -DHAVE_OPE +NPTY -DHAVE_POSIX_OPENPT -DHAVE_PTSNAME -DHAVE_PTY_H -DHAVE_SIGACTION + -DHAVE_STRLCPY -DHAVE_TERMIOS_H -DHAVE_TERMIO_H -DHAVE_TTYNAME -DHAV +E_UNLOCKPT Checking for appropriate ioctls: Checking that returned fd's don't clash with stdin/out/err... trying posix_openpt()... trying grantpt()... trying unlockpt()... trying ptsname()... trying to open /dev/tty4...

In reply to IO:Tty installation in cygwin fails. stuck at "trying to open /dev/tty1." by ericfons

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.