Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > on windows 7 / cygwin / perl / cpan - cannot make cpan work

Reply
Thread Tools

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

 
 
SVCitian
Guest
Posts: n/a
 
      10-21-2010
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 204
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 204
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.

 
Reply With Quote
 
 
 
 
SVCitian
Guest
Posts: n/a
 
      10-22-2010
On Oct 21, 10:55*pm, Sherm Pendley <sherm.pend...@gmail.com> wrote:
> SVCitian <emailsrvr-gro...@yahoo.com> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 04-04-2011 10:00 PM
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 03-07-2011 11:00 PM
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 02-03-2011 11:00 AM
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 01-24-2011 11:00 PM
on windows 7 / cygwin / perl / cpan - cannot install Math::Prime::XS SVCitian Perl Misc 4 11-23-2010 12:39 AM



Advertisments