in reply to Re: Package install issue
in thread Package install issue

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****

Replies are listed 'Best First'.
Re^3: Package install issue
by BrowserUk (Patriarch) on Jun 13, 2016 at 16:15 UTC

    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.

      Hey BrowserUk

      Thanks for your approach. I will try it as soon as i can and replied you as usual.

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

      Thanks again.

      It seems to be interesting to do it by coding too.

      Finally i did like that : cpanm -vnf Carp::REPL

      And it worked fine.

      *****Lost in translation****TIMTOWTOI****
        Finally i did like that : cpanm -vnf Carp::REPL

        And that somehow worked around the dependency on IO::Tty?


        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.
Re^3: Package install issue
by soonix (Chancellor) on Jun 13, 2016 at 16:07 UTC

      Thanks for reply.

      And ,however, it's the case. Here my entire output

      D:\dev\tests>cpanm Carp::REPL --> Working on Carp::REPL Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Carp-REPL-0.18.tar. +gz ... OK Configuring Carp-REPL-0.18 ... OK ==> Found dependencies: Test::Expect --> Working on Test::Expect Fetching http://www.cpan.org/authors/id/B/BP/BPS/Test-Expect-0.33.tar. +gz ... OK Configuring Test-Expect-0.33 ... OK ==> Found dependencies: Expect::Simple --> Working on Expect::Simple Fetching http://www.cpan.org/authors/id/D/DJ/DJERIUS/Expect-Simple-0.0 +4.tar.gz ... OK Configuring Expect-Simple-0.04 ... OK ==> Found dependencies: Expect --> Working on Expect Fetching http://www.cpan.org/authors/id/J/JA/JACOBY/Expect-1.33.tar.gz + ... OK Configuring Expect-1.33 ... OK ==> Found dependencies: IO::Tty, IO::Pty --> Working on IO::Tty Fetching http://www.cpan.org/authors/id/T/TO/TODDR/IO-Tty-1.12.tar.gz +... OK Configuring IO-Tty-1.12 ... N/A ! Configure failed for IO-Tty-1.12. See C:\Users\..\164\build.log for +details. ! Installing the dependencies failed: Module 'IO::Pty' is not installe +d, Module 'IO::Tty' is not installed ! Bailing out the installation for Expect-1.33. ! Installing the dependencies failed: Module 'Expect' is not installed ! Bailing out the installation for Expect-Simple-0.04. ! Installing the dependencies failed: Module 'Expect::Simple' is not i +nstalled ! Bailing out the installation for Test-Expect-0.33. ! Installing the dependencies failed: Module 'Test::Expect' is not ins +talled ! Bailing out the installation for Carp-REPL-0.18.
      *****Lost in translation****TIMTOWTOI****