on windows 7 / cygwin / perl / cpan - cannot make cpan work

Discussion in 'Perl Misc' started by SVCitian, Oct 21, 2010.

  1. SVCitian

    SVCitian Guest

    Hi, I have tried load some Perl Modules using CPAN.. but I can't make
    it work.

    fyi, curl "http://..." works on the command line perfectly. (just so
    that you know the internet connection is all ok.

    this is what i see on the cpan.. when i do install... what can i do to
    fix this issue.

    I use Windows 7, Cygwin, Cpan with all the Perl Stuff installed...
    wget, lynx, curl, ftp, and all the required stuff are there.


    cpan[1]> install HTML::TableExtract
    CPAN: Storable loaded ok (v2.20)
    CPAN: LWP::UserAgent loaded ok (v5.835)
    CPAN: Time::HiRes loaded ok (v1.9719)
    Warning: no success downloading '/home/John/.cpan/sources/authors/
    01mailrc.txt.g
    z.tmp2728'. Giving up on it. at /usr/lib/perl5/5.10/CPAN/Index.pm line
    225
    Fetching with LWP:
    http://www.perl.org/CPAN/authors/01mailrc.txt.gz
    LWP failed with code[502] message[Bad Gateway]

    Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
    "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
    curl: (22) The requested URL returned error: 502

    Function system("/usr/bin/curl -L -f -s -S --netrc-optional
    "http://www.perl
    ..org/CPAN/authors/01mailrc.txt.gz" > /home/John/.cpan/sources/authors/
    01mailrc.
    txt.tmp2728")
    returned status 22 (wstat 5632)
    Warning: expected file [/home/John/.cpan/sources/authors/
    01mailrc.txt.gz.tmp2728
    ] doesn't exist

    Trying with "/usr/bin/wget -O /home/John/.cpan/sources/authors/
    01mailrc.txt.tmp2
    728" to get
    "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
    --2010-10-21 21:47:43-- http://www.perl.org/CPAN/authors/01mailrc.txt.gz
    Resolving www.perl.org (www.perl.org)... 207.171.7.63
    Connecting to www.perl.org (www.perl.org)|207.171.7.63|:80...
    connected.
    HTTP request sent, awaiting response... 502 Bad Gateway
    2010-10-21 21:47:44 ERROR 502: Bad Gateway.


    Function system("/usr/bin/wget -O /home/John/.cpan/sources/authors/
    01mailrc.
    txt.tmp2728 "http://www.perl.org/CPAN/authors/01mailrc.txt.gz" ")
    returned status 8 (wstat 2048)
    Warning: expected file [/home/John/.cpan/sources/authors/
    01mailrc.txt.gz.tmp2728
    ] doesn't exist

    Trying with "/usr/bin/lynx -source" to get
    "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
    CPAN: Compress::Zlib loaded ok (v2.02)
    Error while trying to rename '/home/John/.cpan/sources/authors/
    01mailrc.txt.gz.t
    mp2728' to '/home/John/.cpan/sources/authors/01mailrc.txt.gz': No such
    file or d
    irectoryWarning: no success downloading '/home/John/.cpan/sources/
    authors/01mail
    rc.txt.gz.tmp2728'. Giving up on it. at /usr/lib/perl5/5.10/CPAN/
    Index.pm line 2
    25
    Fetching with LWP:
    http://www.perl.org/CPAN/authors/01mailrc.txt.gz
    LWP failed with code[502] message[Bad Gateway]

    Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
    "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
    curl: (22) The requested URL returned error: 502

    Function system("/usr/bin/curl -L -f -s -S --netrc-optional
    "http://www.perl
    ..org/CPAN/authors/01mailrc.txt.gz" > /home/John/.cpan/sources/authors/
    01mailrc.
    txt.tmp2728")
    returned status 22 (wstat 5632)
    Warning: expected file [/home/John/.cpan/sources/authors/
    01mailrc.txt.gz.tmp2728
    ] doesn't exist

    Trying with "/usr/bin/wget -O /home/John/.cpan/sources/authors/
    01mailrc.txt.tmp2
    728" to get
    "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
    --2010-10-21 21:47:51-- http://www.perl.org/CPAN/authors/01mailrc.txt.gz
    Resolving www.perl.org (www.perl.org)... 207.171.7.63
    Connecting to www.perl.org (www.perl.org)|207.171.7.63|:80...
    connected.
    HTTP request sent, awaiting response... 502 Bad Gateway
    2010-10-21 21:47:52 ERROR 502: Bad Gateway.


    Function system("/usr/bin/wget -O /home/John/.cpan/sources/authors/
    01mailrc.
    txt.tmp2728 "http://www.perl.org/CPAN/authors/01mailrc.txt.gz" ")
    returned status 8 (wstat 2048)
    Warning: expected file [/home/John/.cpan/sources/authors/
    01mailrc.txt.gz.tmp2728
    ] doesn't exist

    Trying with "/usr/bin/lynx -source" to get
    "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
    Error while trying to rename '/home/John/.cpan/sources/authors/
    01mailrc.txt.gz.t
    mp2728' to '/home/John/.cpan/sources/authors/01mailrc.txt.gz': No such
    file or d
    irectoryLockfile removed.
     
    SVCitian, Oct 21, 2010
    #1
    1. Advertising

  2. SVCitian

    SVCitian Guest

    On Oct 21, 10:55 pm, Sherm Pendley <> wrote:
    > SVCitian <> writes:
    > > Hi, I have tried load some Perl Modules using CPAN.. but I can't make
    > > it work.

    >
    > > fyi, curl "http://..." works on the command line perfectly. (just so
    > > that you know the internet connection is all ok.

    >
    > Yeah, the error messages seem to indicate that the request is being
    > made OK, but the server is returning an error - i.e. connectivity doesn't
    > seem to be the problem.
    >
    > Have you tried configuring CPAN.pm to use a different mirror site?
    >
    > sherm--
    >
    > --
    > Sherm Pendley
    >                                    <http://camelbones.sourceforge.net>
    > Cocoa Developer


    Thank you so much.. I have no idea about CPAN.pm.

    earlier i accepted the defaults (auto configure).

    and i didn't know how i can go back to set all those thing again.. and
    I read from elsewhere to do this:

    cpan> o conf init

    and went through all the steps.. and put in several mirrors from
    here.. closer to my country.
    http://www.cpan.org/SITES.html

    and it works perfectly now.

    Thank you.
     
    SVCitian, Oct 22, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SVCitian
    Replies:
    4
    Views:
    526
    Ilya Zakharevich
    Nov 23, 2010
  2. PerlFAQ Server
    Replies:
    0
    Views:
    178
    PerlFAQ Server
    Jan 24, 2011
  3. PerlFAQ Server
    Replies:
    0
    Views:
    724
    PerlFAQ Server
    Feb 3, 2011
  4. PerlFAQ Server
    Replies:
    0
    Views:
    202
    PerlFAQ Server
    Mar 7, 2011
  5. PerlFAQ Server
    Replies:
    0
    Views:
    734
    PerlFAQ Server
    Apr 4, 2011
Loading...

Share This Page