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

S

SVCitian

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.
 
S

SVCitian

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

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top