Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi all,

I'm trying to install IO::Pty under Cygwin, since Windows doesn't support ptys but it's doable with Cygwin. Seems to go okay, but the installation for IO::Tty (a prereq) gets stuck trying to open /dev/ttyN (N has ranged from 0-3 so far):

CPAN: Storable loaded ok (v2.20) Going to read '/cygdrive/c/Documents and Settings/Administrator/My Doc +uments/.cpan/Metadata' Database was generated on Thu, 26 Aug 2010 21:30:56 GMT Running install for module 'IO::Pty' CPAN: YAML loaded ok (v0.71) Running make for R/RG/RGIERSIG/IO-Tty-1.08.tar.gz CPAN: Digest::SHA loaded ok (v5.47) CPAN: Compress::Zlib loaded ok (v2.024) Checksum for /cygdrive/c/Documents and Settings/Administrator/My Docum +ents/.cpan/sources/authors/id/R/RG/RGIERSIG/IO-Tty-1.08.tar.gz ok CPAN: Archive::Tar loaded ok (v1.52) IO-Tty-1.08/ IO-Tty-1.08/Makefile.PL IO-Tty-1.08/README IO-Tty-1.08/try IO-Tty-1.08/ IO-Tty-1.08/META.yml IO-Tty-1.08/MANIFEST IO-Tty-1.08/ IO-Tty-1.08/ChangeLog IO-Tty-1.08/ IO-Tty-1.08/Tty.xs CPAN: File::Temp loaded ok (v0.22) Going to build R/RG/RGIERSIG/IO-Tty-1.08.tar.gz Now let's see what we can find out about your system (logfiles of failing tests are available in the conf/ dir)... Looking for _getpty()...... not found. Looking for getpt()........ not found. Looking for grantpt()...... FOUND. Looking for openpty()...... FOUND. Looking for posix_openpt(). FOUND. Looking for ptsname()...... FOUND. Looking for ptsname_r().... not found. Looking for sigaction().... FOUND. Looking for strlcpy()...... FOUND. Looking for ttyname()...... FOUND. Looking for unlockpt()..... FOUND. Looking for libutil.h...... not found. Looking for pty.h.......... FOUND. Looking for sys/pty.h...... not found. Looking for sys/ptyio.h.... not found. Looking for sys/stropts.h.. not found. Looking for termio.h....... FOUND. Looking for termios.h...... FOUND. Looking for util.h......... not found. Checking which symbols compile OK... (sorry for the tedious check, but some systems have not too clean header files, to say the least; '+' means OK, '-' means not defined and '*' has compile problems...) +B0 +B110 +B115200 +B1200 +B134 +B150 -B153600 +B1800 +B19200 +B200 +B +230400 +B2400 +B300 -B307200 +B38400 +B460800 +B4800 +B50 +B57600 +B6 +00 +B75 -B76800 +B9600 +BRKINT +BS0 +BS1 +BSDLY +CBAUD -CBAUDEXT -CBR +K -CCTS_OFLOW +CDEL +CDSUSP +CEOF +CEOL +CEOL2 +CEOT +CERASE +CESC +C +FLUSH -CIBAUD -CIBAUDEXT +CINTR +CKILL +CLNEXT +CLOCAL -CNSWTCH +CNUL + +CQUIT +CR0 +CR1 +CR2 +CR3 +CRDLY +CREAD +CRPRNT +CRTSCTS +CRTSXOFF +-CRTS_IFLOW +CS5 +CS6 +CS7 +CS8 +CSIZE +CSTART +CSTOP +CSTOPB +CSUSP ++CSWTCH +CWERASE -DEFECHO -DIOC -DIOCGETP -DIOCSETP -DOSMODE +ECHO +E +CHOCTL +ECHOE +ECHOK +ECHOKE +ECHONL -ECHOPRT -EXTA -EXTB +FF0 +FF1 + +FFDLY -FIORDCHK +FLUSHO +HUPCL +ICANON +ICRNL +IEXTEN +IGNBRK +IGNCR ++IGNPAR +IMAXBEL +INLCR +INPCK +ISIG +ISTRIP +IUCLC +IXANY +IXOFF +IX +ON -KBENABLED -LDCHG -LDCLOSE -LDDMAP -LDEMAP -LDGETT -LDGMAP -LDIOC +-LDNMAP -LDOPEN -LDSETT -LDSMAP -LOBLK +NCCS +NL0 +NL1 +NLDLY +NOFLSH + +OCRNL +OFDEL +OFILL +OLCUC +ONLCR +ONLRET +ONOCR +OPOST -PAGEOUT +P +ARENB -PAREXT +PARMRK +PARODD -PENDIN -RCV1EN -RTS_TOG +TAB0 +TAB1 +T +AB2 +TAB3 +TABDLY -TCDSET +TCFLSH +TCGETA -TCGETS +TCIFLUSH +TCIOFF + +TCIOFLUSH +TCION +TCOFLUSH +TCOOFF +TCOON +TCSADRAIN +TCSAFLUSH +TCSA +NOW -TCSBRK +TCSETA +TCSETAF +TCSETAW -TCSETCTTY -TCSETS -TCSETSF -TC +SETSW -TCXONC -TERM_D40 -TERM_D42 -TERM_H45 -TERM_NONE -TERM_TEC -TER +M_TEX -TERM_V10 -TERM_V61 +TIOCCBRK -TIOCCDTR -TIOCCONS -TIOCEXCL -TI +OCFLUSH -TIOCGETC -TIOCGETD -TIOCGETP -TIOCGLTC -TIOCGPGRP -TIOCGSID +-TIOCGSOFTCAR +TIOCGWINSZ -TIOCHPCL -TIOCKBOF -TIOCKBON -TIOCLBIC -TI +OCLBIS -TIOCLGET -TIOCLSET +TIOCMBIC +TIOCMBIS +TIOCMGET +TIOCMSET +T +IOCM_CAR +TIOCM_CD +TIOCM_CTS +TIOCM_DSR +TIOCM_DTR -TIOCM_LE +TIOCM_ +RI +TIOCM_RNG +TIOCM_RTS -TIOCM_SR -TIOCM_ST -TIOCNOTTY -TIOCNXCL -TI +OCOUTQ -TIOCREMOTE +TIOCSBRK -TIOCSCTTY -TIOCSDTR -TIOCSETC -TIOCSETD + -TIOCSETN -TIOCSETP -TIOCSIGNAL -TIOCSLTC -TIOCSPGRP -TIOCSSID -TIOC +SSOFTCAR -TIOCSTART -TIOCSTI -TIOCSTOP +TIOCSWINSZ -TM_ANL -TM_CECHO +-TM_CINVIS -TM_LCF -TM_NONE -TM_SET -TM_SNL +TOSTOP -VCEOF -VCEOL +VD +ISCARD -VDSUSP +VEOF +VEOL +VEOL2 +VERASE +VINTR +VKILL +VLNEXT +VMIN + +VQUIT +VREPRINT +VSTART +VSTOP +VSUSP -VSWTCH +VT0 +VT1 +VTDLY +VTI +ME +VWERASE -WRAP -XCASE -XCLUDE -XMT1EN +XTABS >>> Configuration looks good! <<< Writing 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 blib/lib/IO/ cp Tty/ blib/lib/IO/Tty/ cp blib/lib/IO/ /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 && cp blib/arch/auto/IO/Tty/ && \ chmod 644 blib/arch/auto/IO/Tty/ 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" 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...
Is there something else I need to install to do this?? Something Cygwin related? I'm at a loss as to why this won't install.

In reply to IO::Pty with Cygwin - can't install by azredwing

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others studying the Monastery: (4)
    As of 2018-01-22 20:24 GMT
    Find Nodes?
      Voting Booth?
      How did you see in the new year?

      Results (237 votes). Check out past polls.