For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2007 > Changing CPAN config before initial config?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Changing CPAN config before initial config?
Richard Fernandez

2007-09-26, 10:00 pm

Hi folks,

I have a lot of boxes which are behind firewalls. Fortunately, I have a
local CPAN mirror that I install modules from.
The problem is that often when I run the CPAN shell (# perl -MCPAN
-eshell) I am asked the question: "Are you ready for manual
configuration?". After I answer "yes" at some point it tries to grab the
MIRRORED.BY file from ftp.perl.org. This process takes quite a while
since it tries many things to reach the outside world. Finally it quits
and I can tell it where my CPAN mirror is.

Is there any way to configure the urllist with my mirror before doing
the manual config? I read perldoc CPAN but didn't see any way to do
this.

Thanks.

richf
Rob Dixon

2007-09-26, 10:00 pm

RICHARD FERNANDEZ wrote:
>
> I have a lot of boxes which are behind firewalls. Fortunately, I have a
> local CPAN mirror that I install modules from.
> The problem is that often when I run the CPAN shell (# perl -MCPAN
> -eshell) I am asked the question: "Are you ready for manual
> configuration?". After I answer "yes" at some point it tries to grab the
> MIRRORED.BY file from ftp.perl.org. This process takes quite a while
> since it tries many things to reach the outside world. Finally it quits
> and I can tell it where my CPAN mirror is.
>
> Is there any way to configure the urllist with my mirror before doing
> the manual config? I read perldoc CPAN but didn't see any way to do
> this.


Erm, apache isn't a database server! Or am I missing something? What exactly
is it you want to do?

Rob
Rob Dixon

2007-09-26, 10:00 pm

Rob Dixon wrote:
>
> RICHARD FERNANDEZ wrote:
>
> Erm, apache isn't a database server! Or am I missing something? What
> exactly is it you want to do?


I'm sorry - that was a reply to a different question. Please ignore my
nonsense.

Rob
Tom Phoenix

2007-09-26, 10:00 pm

On 9/26/07, RICHARD FERNANDEZ <rfernandez@arrow.com> wrote:

> I have a lot of boxes which are behind firewalls. Fortunately, I have a
> local CPAN mirror that I install modules from.
> The problem is that often when I run the CPAN shell (# perl -MCPAN
> -eshell) I am asked the question: "Are you ready for manual
> configuration?". After I answer "yes" at some point it tries to grab the
> MIRRORED.BY file from ftp.perl.org. This process takes quite a while
> since it tries many things to reach the outside world. Finally it quits
> and I can tell it where my CPAN mirror is.


You should be able to make a basic CPAN configuration file that you
can copy from one machine to another. With a supplied initial
configuration, it shouldn't ask you about manual configuration.

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training
Srinivas

2007-09-26, 10:00 pm

Hi Richard,

There will be a config.pm file in the cpan module directory, you can
change the url list to point it to your local mirrors.

Thank You,

-srini
RICHARD FERNANDEZ wrote:
> Hi folks,
>
> I have a lot of boxes which are behind firewalls. Fortunately, I have a
> local CPAN mirror that I install modules from.
> The problem is that often when I run the CPAN shell (# perl -MCPAN
> -eshell) I am asked the question: "Are you ready for manual
> configuration?". After I answer "yes" at some point it tries to grab the
> MIRRORED.BY file from ftp.perl.org. This process takes quite a while
> since it tries many things to reach the outside world. Finally it quits
> and I can tell it where my CPAN mirror is.
>
> Is there any way to configure the urllist with my mirror before doing
> the manual config? I read perldoc CPAN but didn't see any way to do
> this.
>
> Thanks.
>
> richf
>
>


Richard Fernandez

2007-09-26, 10:00 pm

=20

> -----Original Message-----
> From: Srinivas [mailto:srini@gcrossing.net]=20
> Sent: Wednesday, September 26, 2007 12:42 PM
> To: RICHARD FERNANDEZ
> Cc: Beginners List
> Subject: Re: Changing CPAN config before initial config?
>=20
> Hi Richard,
>=20
> There will be a config.pm file in the cpan module directory,=20
> you can change the url list to point it to your local mirrors.
>=20
> Thank You,
>=20
> -srini



Ahh. Thank you Srini.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com