Chaoui05 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks !

I don't know if i can ask this kind of question here.So if it's not the case, i'am sorry in advance

I would like to install "IO::Tty" package but installation failed and i have this following output in my shell :

This module requires a POSIX compliant system to work. Try cygwin if y +ou need this module on windows OS unsupported at Makefile.PL line 6.

What can i do ? I don't know what is exactly cygwin and in this case what i can do.

Many thanks !

*****Lost in translation****TIMTOWTOI****

Replies are listed 'Best First'.
Re: Package install issue
by Marshall (Canon) on Jun 13, 2016 at 15:43 UTC
    Cygwin is a Unix like environment for Windows. Of course this cannot completely emulate Unix, because it is not Unix. The docs for IO:Tty clearly state that this module does not work under Windows, but that it can work now under Cygwin.

    Update: I like the Anon Monk question. Back up and tell us what you are trying to do and why you want this module. There may be another way to do what you want. I've used Cygwin before and this adds a significant layer of complication. I wouldn't do that unless you really have to do it.

      Thanks Marshall

      Perfect. I understand well now.

      Concerning your update, i just replied to Anonymous Monk. And yes , as you say, it seems to be complicated for a tool.

      *****Lost in translation****TIMTOWTOI****
Re: Package install issue
by stevieb (Canon) on Jun 13, 2016 at 15:28 UTC

    Cygwin is a Unix emulator for Windows.

    The error is stating that you can not install IO::Tty on Windows. Cygwin will allow you to use it on Windows, through the Unix emulator.

      Thanks stevieb .

      OK i understand now. But have i to install cygwin to do it?

      I tried it but cygwin seems special. He wants us to add a web site url , is it ?

      *****Lost in translation****TIMTOWTOI****
Re: Package install issue
by Anonymous Monk on Jun 13, 2016 at 15:34 UTC
    I think we need to take this a step back. Why do you want IO::Tty on windows?

      Hi Anonymous Monk,

      Of course,

      I would like to install "IO::Tty" in order to install "Expect::Simple" module which will allow me to install finally "Carp::REPL" package.

      *****Lost in translation****TIMTOWTOI****

        Instead of jumping through hoops trying to install a huge pile of stuff just in order to get a repl on failure, try something like this:

        $SIG{ __DIE__ } = sub { require Carp; Carp::Cluck( @_ ); while( 1 ) { my $code = <STDIN>; print eval $code; } };

        Of course, that's just a minimalist implementation that may not even run as I typed it straight into the browser, but it's probably easier to fix that up to something usable than chase through all the dependencies of the module you're trying to use.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
        In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.