Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 42933
Status: open
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: MLEHMANN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.9301
Fixed in: (no value)



i use "cpan modulename" to automatically install modules for a long time. a wrapper script redirects output to a file. this stopped working: Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't work. The COLUMNS and LINES environment variables didn't work. The resize program didn't work. at /opt/perl/lib/perl5/Term/ReadKey.pm line 362. Compilation failed in require at /opt/perl/lib/perl5/Term/ReadLine/Perl.pm line 63. [Exit 77] for some reason, cpan seems to require stdout to be a terminal when in batchmode now. I don't know whether this was caused by a new CPAN version, or something else.
Offhand I have no idea what's causing this. I have a workaround for you, make cpan an alias for perl -MCPAN -e '$CPAN::Suppress_readline++; install shift' or similar. It might have to do if there is Term::ReadLine::Perl or Term::ReadLine::Gnu installed and the environment variables wach of them use. The CPAN.pm code in the readline area has not been touched for a long time as far as I know.
Subject: Re: [rt.cpan.org #42933]
Date: Sat, 31 Jan 2009 07:29:19 -0500
To: bug-CPAN [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
Please attach your 'perl -V' output.
Subject: Re: [rt.cpan.org #42933]
Date: Sat, 31 Jan 2009 20:45:34 +0100
To: David Golden via RT <bug-CPAN [...] rt.cpan.org>
From: Marc Lehmann <schmorp [...] schmorp.de>
On Sat, Jan 31, 2009 at 08:44:09AM -0500, David Golden via RT <bug-CPAN@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=42933 > > > Please attach your 'perl -V' output. >
Show quoted text
> Please attach your 'perl -V' output.
-- The choice of a Deliantra, the free code+content MORPG -----==- _GNU_ http://www.deliantra.net ----==-- _ generation ---==---(_)__ __ ____ __ Marc Lehmann --==---/ / _ \/ // /\ \/ / pcg@goof.com -=====/_/_//_/\_,_/ /_/\_\

Message body is not shown because sender requested not to inline it.

CC: MLEHMANN [...] cpan.org
Subject: Re: [rt.cpan.org #42933]
Date: Sat, 31 Jan 2009 20:48:53 +0100
To: Andreas Koenig via RT <bug-CPAN [...] rt.cpan.org>
From: Marc Lehmann <schmorp [...] schmorp.de>
On Sat, Jan 31, 2009 at 06:26:07AM -0500, Andreas Koenig via RT <bug-CPAN@rt.cpan.org> wrote: Show quoted text
> Offhand I have no idea what's causing this. I have a workaround for you, > make cpan an alias for
Seems to work fine for me, thank you very much :) Show quoted text
> It might have to do if there is Term::ReadLine::Perl or > Term::ReadLine::Gnu installed and the environment variables wach of them > use. The CPAN.pm code in the readline area has not been touched for a > long time as far as I know.
Hmm, it is possible thta I use some env variables, but I also don't think that has changed. What did change was that I installed quite a number of modules between working and not-working, including CPAN::SQLite (which I uninstalled since then because cpan crashes often with it, or actually sqlite crashes often) and Term::ReadKey, but I don't quite see the connection (Term::ReadKey should fail with older versions as well). Anyways, the above workaround seems to work, I will try it in my script, many thanks! -- The choice of a Deliantra, the free code+content MORPG -----==- _GNU_ http://www.deliantra.net ----==-- _ generation ---==---(_)__ __ ____ __ Marc Lehmann --==---/ / _ \/ // /\ \/ / pcg@goof.com -=====/_/_//_/\_,_/ /_/\_\