Unix Technical Forum

g-cpan.pl how to change source of download ?

This is a discussion on g-cpan.pl how to change source of download ? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> P4_2400 root # g-cpan.pl List::Uniq mkdir /tmp/perl-modules_22355 mkdir /tmp/perl-modules_22355/dev-perl CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 10:21 AM
Lars H.
 
Posts: n/a
Default g-cpan.pl how to change source of download ?

P4_2400 root # g-cpan.pl List::Uniq
mkdir /tmp/perl-modules_22355
mkdir /tmp/perl-modules_22355/dev-perl
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Sat, 11 Dec 2004 05:55:51 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://mirror.uni-c.dk/pub/CPAN/authors/01mailrc.txt.gz

P4_2400 root #

Well ftp://mirror.uni-c.dk is not responding.

Question:
How to make g-cpan.pl use another source?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 10:21 AM
Leif B. Kristensen
 
Posts: n/a
Default Re: g-cpan.pl how to change source of download ?

Lars H. skrev:

> Question:
> How to make g-cpan.pl use another source?


Use the source, Luke :-)

It appears that g-cpan.pl uses the cpan configuration, and the conf data
are stored in the .cpan directory under /root. Just run cpan as root &
pump your way through the questions until you reach the interesting
part.
--
Leif Biberg Kristensen
http://solumslekt.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 10:21 AM
Leif B. Kristensen
 
Posts: n/a
Default Re: g-cpan.pl how to change source of download ?

Leif B. Kristensen skrev:

> It appears that g-cpan.pl uses the cpan configuration, and the conf
> data are stored in the .cpan directory under /root. Just run cpan as
> root & pump your way through the questions until you reach the
> interesting part.


If you already have configured the cpan options, there are at least two
ways to reinitialize: 1) the obvious one: rm -rf /root/.cpan. 2) the
preferred one: start cpan, an enter "o conf init" at the prompt.

When you arrive at the country list you can enter several countries
separated by spaces, eg. 7 21 29 <Enter> for Denmark, Norway & Sweden.
Then you'll get a listing of 8 different sites. I just selected them
all, by pressing 1 2 3 4 5 6 7 8 <Enter>.

med vennlig hilsen
--
Leif Biberg Kristensen
http://solumslekt.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 10:21 AM
Lars H.
 
Posts: n/a
Default Re: g-cpan.pl how to change source of download ?

Leif B. Kristensen wrote:

> Leif B. Kristensen skrev:
>
>> It appears that g-cpan.pl uses the cpan configuration, and the conf
>> data are stored in the .cpan directory under /root. Just run cpan as
>> root & pump your way through the questions until you reach the
>> interesting part.

>
> If you already have configured the cpan options, there are at least two
> ways to reinitialize: 1) the obvious one: rm -rf /root/.cpan. 2) the
> preferred one: start cpan, an enter "o conf init" at the prompt.
>
> When you arrive at the country list you can enter several countries
> separated by spaces, eg. 7 21 29 <Enter> for Denmark, Norway & Sweden.
> Then you'll get a listing of 8 different sites. I just selected them
> all, by pressing 1 2 3 4 5 6 7 8 <Enter>.
>
> med vennlig hilsen


Well none of this works, but gave me the idea of looking at
/usr/lib/perl5/5.8.5/CPAN/Config.pm


This however shows the problem just deleted the
file /usr/lib/perl5/5.8.5/CPAN/Config.pm
and ran your 2. solution to the problem.


Yes doing a "rm -rf /root/.cpan" doesn't reset. Has to delete the
/usr/lib/perl5/5.8.5/CPAN/Config.pm file and then as you say
"start cpan, an enter "o conf init" at the prompt."

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 10:21 AM
Leif B. Kristensen
 
Posts: n/a
Default Re: g-cpan.pl how to change source of download ?

Lars H. skrev:

> Yes doing a "rm -rf root.cpan" doesn't reset.


I deliberately munged that path. Thought you'd figure it out if you had
the wits to do it right. Anyways, it's a stunt, and not the canonical
way.

> Has to delete the
> /usr/lib/perl5/5.8.5/CPAN/Config.pm file and then as you say
> "start cpan, an enter "o conf init" at the prompt."


Interesting. I hadn't thought of doing it that way; I found method (2)
perfectly satisfying.

Pythonically but not particularly Perlishly, yours
--
Leif Biberg Kristensen
I don't have a hardware problem --
I can quit buying hardware whenever I want!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 10:21 AM
Lars H.
 
Posts: n/a
Default Re: g-cpan.pl how to change source of download ?

Leif B. Kristensen wrote:

> Lars H. skrev:
>
>> Yes doing a "rm -rf root.cpan" doesn't reset.

>
> I deliberately munged that path. Thought you'd figure it out if you had
> the wits to do it right. Anyways, it's a stunt, and not the canonical
> way.
>
>> Has to delete the
>> /usr/lib/perl5/5.8.5/CPAN/Config.pm file and then as you say
>> "start cpan, an enter "o conf init" at the prompt."

>
> Interesting. I hadn't thought of doing it that way; I found method (2)
> perfectly satisfying.
>
> Pythonically but not particularly Perlishly, yours
> --
> Leif Biberg Kristensen
> I don't have a hardware problem --
> I can quit buying hardware whenever I want!


First thanks,
Could it be that your 2), where it still is possible to connect to the
entered URL(s), works. But when only having one URL in the configuration,
that doesn't work - the situation I had,
deleting /usr/lib/perl5/5.8.5/CPAN/Config.pm is nessary.

Again thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com