Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   on windows 7 / cygwin / perl / cpan - cannot make cpan work (http://www.velocityreviews.com/forums/t914026-on-windows-7-cygwin-perl-cpan-cannot-make-cpan-work.html)

SVCitian 10-21-2010 02:51 PM

on windows 7 / cygwin / perl / cpan - cannot make cpan work
 
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 10-22-2010 03:59 PM

Re: on windows 7 / cygwin / perl / cpan - cannot make cpan work
 
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.


All times are GMT. The time now is 03:49 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.