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

Hi All,

am using perl,

racket@ibmlap perl$ perl -v This is perl, v5.8.5 built for i386-linux-thread-multi

on a Linux box, CentOS4.1 and am having trouble adding modules,

Removing previously used /root/.cpan/build/junoscript-perl-6.4I0 CPAN.pm: Going to build J/JU/JUNOS/junoscript-perl-6.4I0.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite IO::Tty 0 not found. Writing Makefile for junoscript-perl ---- Unsatisfied dependencies detected during [J/JU/JUNOS/junoscript-p +erl-6.4I0.tar.gz] ----- IO::Tty Shall I follow them and prepend them to the queue of modules we are processing right now? [yes]

and then after giving a yes, get the below continuously,

Trying with "/usr/bin/links -source" to get ftp://ftp.perl.org/pub/CPAN/authors/id/G/GB/GBARR/CHECKSUMS ERROR at dump.c:188: Error reading from socket Trying with "/usr/bin/links -source" to get ftp://ftp.perl.org/pub/CPAN/authors/id/G/GB/GBARR/CHECKSUMS.gz ERROR at dump.c:188: Error reading from socket Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/pub/CPAN/authors/id/G/GB/GBARR/CHECKSUMS --17:00:33-- ftp://ftp.perl.org/pub/CPAN/authors/id/G/GB/GBARR/CHECKS +UMS => `-' Resolving ftp.perl.org... 163.143.1.21 Connecting to ftp.perl.org|163.143.1.21|:21... connected. Logging in as anonymous ... Error in server response, closing control connection. Retrying. --17:00:35-- ftp://ftp.perl.org/pub/CPAN/authors/id/G/GB/GBARR/CHECKS +UMS (try: 2) => `-' Connecting to ftp.perl.org|163.143.1.21|:21... connected. Logging in as anonymous ... Error in server response, closing control connection. Retrying. --17:00:37-- ftp://ftp.perl.org/pub/CPAN/authors/id/G/GB/GBARR/CHECKS +UMS (try: 3) => `-' Connecting to ftp.perl.org|163.143.1.21|:21... connected. Logging in as anonymous ... Error in server response, closing control connection. Retrying.

I can successfully ping that IP. Doing this as root, as a sudo gave other errors. Any thoughts/suggestions? Cheers

coolboarderguy...

Replies are listed 'Best First'.
Re: Module Install Problems
by Corion (Patriarch) on Mar 27, 2006 at 08:13 UTC

    Maybe you are behind a proxy that does not handle FTP connections well. Reconfigure CPAN to use a different mirror (other than ftp.perl.org), and maybe a different protocol, like http. In the cpan shell, type:

    o conf urllist unshift http://mirrors.playboy.com/CPAN/

    ... and then retry.

      Hi All,

      good suggestion. Worked. Cheers.

      coolboaderguy...

Re: Module Install Problems
by tirwhan (Abbot) on Mar 27, 2006 at 08:24 UTC

    Like Corion said, this is possibly due to a firewall or proxy which isn't allowing active FTP connections. ICMP ping isn't really good for anything much across the internet, to test whether FTP works from your machine you could execute

    ftp ftp.perl.org

    And run through the ftp exchange by hand, if it hangs whenever you want to change directory or download a file then the problem is a your firewall/gateway/proxy. In this case you could try using passive FTP, do

    export FTP_PASSIVE=1

    On the command line and then try the CPAN download again (also see perldoc CPAN for more details on this subject).


    All dogma is stupid.
      Hi All,

      thanx for the suggestions. I got as far as this now, after changing things as 1st suggested by Corion,

      Fetching with LWP: http://mirrors.playboy.com/CPAN/authors/id/P/PM/PMQS/CHECKSUMS 'glob' trapped by operation mask at (eval 82) line 1. at /usr/lib/perl5/5.8.5/CPAN.pm line 4266 CPAN::Distribution::MD5_check_file('CPAN::Distribution=HASH(0x +a77a4a0)', '/root/.cpan/sources/authors/id/P/PM/PMQS/CHECKSUMS') call +ed at /usr/lib/perl5/5.8.5/CPAN.pm line 4247 CPAN::Distribution::verifyMD5('CPAN::Distribution=HASH(0xa77a4 +a0)') called at /usr/lib/perl5/5.8.5/CPAN.pm line 3895 CPAN::Distribution::get('CPAN::Distribution=HASH(0xa77a4a0)') +called at /usr/lib/perl5/5.8.5/CPAN.pm line 4464 CPAN::Distribution::make('CPAN::Distribution=HASH(0xa77a4a0)') + called at /usr/lib/perl5/5.8.5/CPAN.pm line 4704 CPAN::Distribution::test('CPAN::Distribution=HASH(0xa77a4a0)') + called at /usr/lib/perl5/5.8.5/CPAN.pm line 4809 CPAN::Distribution::install('CPAN::Distribution=HASH(0xa77a4a0 +)') called at /usr/lib/perl5/5.8.5/CPAN.pm line 5496 CPAN::Module::rematein('CPAN::Module=HASH(0xa3513b0)', 'instal +l') called at /usr/lib/perl5/5.8.5/CPAN.pm line 5560 CPAN::Module::install('CPAN::Module=HASH(0xa3513b0)') called a +t /usr/lib/perl5/5.8.5/CPAN.pm line 5095 CPAN::Bundle::rematein('CPAN::Bundle=HASH(0xb7ac3768)', 'insta +ll') called at /usr/lib/perl5/5.8.5/CPAN.pm line 5177 CPAN::Bundle::install('CPAN::Bundle=HASH(0xb7ac3768)') called +at /usr/lib/perl5/5.8.5/CPAN.pm line 2138 CPAN::Shell::rematein('CPAN::Shell', 'install', 'Bundle::CPAN' +) called at /usr/lib/perl5/5.8.5/CPAN.pm line 2165 CPAN::Shell::install('CPAN::Shell', 'Bundle::CPAN') called at +/usr/lib/perl5/5.8.5/CPAN.pm line 201 eval {...} called at /usr/lib/perl5/5.8.5/CPAN.pm line 201 CPAN::shell() called at /usr/bin/cpan line 193

      I'm a little lost, but, ready to learn how to get this done. Cheers.

      coolboarderguy...

        Hi All,

        more of the same, at another attempt. This is an install of perl via yum. Should I perhaps try removing it, and installing perl from source, perhaps? Cheers.

        coolboarderguy...

        Use of uninitialized value in chdir at /usr/lib/perl5/5.8.5/CPAN.pm li +ne 4487. Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/lib/ +perl5/5.8.5/CPAN.pm line 4487. Can't open perl script "Makefile.PL": No such file or directory. Use -S to search $PATH for it. Bundle summary: The following items in bundle Bundle::CPAN had install +ation problems: Module::Signature Compress::Zlib Archive::Tar Archive::Zip Bundle::l +ibnet Term::ReadKey Term::ReadLine::Perl YAML Text::Glob Module::Build CPA +N and the following items had problems during recursive bundle calls: Net::Telnet Panic: no build_dir? at /usr/lib/perl5/5.8.5/CPAN.pm line 4666.