Click here to get back home

CPAN commandline tool is not working

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
CPAN commandline tool is not working skywriter14 04-02-2008
Posted by skywriter14 on April 2, 2008, 4:02 pm
Please log in for more thread options
Dear Group,

I am using Perl in my Ubuntu machine where CPAN commandline tool is
acting very strange. Looks like, it is getting false response form all
or any CPAN mirror. I reconfigured cpan 'urllist' few times with
different sets of 7/8 urls. But it always stalls and keeps getting 404
and 500 status from all the mirrors.

My net connection is OK, I downloaded the same files with wget
manually, for which cpan gets 404 (01mailrc etc). I cannot do 'install
Bundle::CPAN' successfully for the same reason, keep getting 404 and
500 status from all mirrors. I have been downloading source for
different modules that in need for my current project, one by one all
day and building them manually, as cpan command is not helping.
Following dependencies and doing same thigs over and over for each
module is very frustrating. So it was a very stressful day for me.

Can anyone suggest what might be the reason and how can I fix my CPAN
commandline tool? Thanks in advance.

regards,
Sumon

Posted by Ben Morrow on April 2, 2008, 4:32 pm
Please log in for more thread options

>
> I am using Perl in my Ubuntu machine where CPAN commandline tool is
> acting very strange. Looks like, it is getting false response form all
> or any CPAN mirror. I reconfigured cpan 'urllist' few times with
> different sets of 7/8 urls. But it always stalls and keeps getting 404
> and 500 status from all the mirrors.

Can you show us a log from an attempt to use CPAN? Just running 'reload
index' in the shell ought to be enough if all fetches are failing. It's
possible you have an invalid proxy set in your environment, though wget
generally honours the same environment vars as LWP. It's also possible
CPAN is using some external command for downloading that is misbehaving.

Ben


Posted by skywriter14 on April 2, 2008, 5:05 pm
Please log in for more thread options
> Can you show us a log from an attempt to use CPAN? Just running 'reload
> index' in the shell ought to be enough if all fetches are failing. It's
> possible you have an invalid proxy set in your environment, though wget
> generally honours the same environment vars as LWP. It's also possible
> CPAN is using some external command for downloading that is misbehaving.
>
> Ben

Thanks Ben. I fixed the problem by adding main cpan.org in the list.
And sorry, I cannot show the cpan command logs as I did many things on
the same terminal, they are gone. Here is the urllist from CPAN's
MyConfig.pm file.

'urllist' => [ q[http://search.cpan.org/CPAN/], q[http://
mirror.lums.edu.pk], q[ftp://cpan.hexten.net/], q[ftp://
cpan.hostrack.net/pub/CPAN], q[ftp://cpan.llarian.net/pub/CPAN/],
q[ftp://cpan.mirrors.redwire.net/pub/CPAN/], q[ftp://
cpan.mirrors.tds.net/pub/CPAN], q[ftp://cpan.netnitco.net/pub/mirrors/
CPAN/], q[ftp://cpan.erlbaum.net/CPAN/]],

I added the second url by following search.cpan.org in opera statusbar
(search.cpan.org is redirecting me in opera to http://mirror.lums.edu.pk
all day. But even that did not work). Now I added http://search.cpan.org/CPAN/
in the beginning, and it is working. Not sure why this happened. All
these mirrors work through wget. Do you understand what was the exact
problem? Thanks again, I will use 'reload index' next time I hit
similar problems.

Posted by brian d foy on April 3, 2008, 1:03 am
Please log in for more thread options
In article


> Thanks Ben. I fixed the problem by adding main cpan.org in the list.
> And sorry, I cannot show the cpan command logs as I did many things on
> the same terminal, they are gone.

You could always just run the command again :)

--
Posted via a free Usenet account from http://www.teranews.com


Posted by skywriter14 on April 3, 2008, 7:27 am
Please log in for more thread options

>
> You could always just run the command again :)
>

Hi Brian,

:) I do feel like a fool, but CPAN is working alright now. So I cannot
recreate the same errors again by running the command again. I did not
want to recreate the problem again to show the output, as I am already
running behind the work schedule. But I can describe: in general all
the means of query failed one by one for each mirror, the LWP, then
Net::FTP and so on.

I did copy the urls they failed to get (01mailrc... and others), and
tried with wget and they were downloaded. I am happy that it is
working now, but do not feel very intelligent because I do not
understand what exactly went wrong and what exactly fixed it. Again,
my internet connection was OK all the time. Thanks for the reply
though. :)

Similar ThreadsPosted
Simple commandline tool to aid reading the posts of this or any group June 3, 2007, 11:36 am
Problem with search.cpan.org grep tool January 29, 2006, 7:02 pm
CPAN - not working September 17, 2004, 8:01 pm
Re: CPAN - not working September 17, 2004, 8:22 pm
CPAN 'shell' interface stopped working? September 7, 2006, 8:21 am
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails May 10, 2005, 9:29 pm
FAQ: What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? October 18, 2004, 5:10 pm
FAQ: What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? October 19, 2004, 5:10 pm
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? January 15, 2005, 12:03 am
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? April 30, 2005, 11:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap