How to AUTOMATICALLY configure CPAN?

  • Follow


I am trying to create a fully scripted (inside a makefile) install of
perl-5.10.1. 

Most of the things work, except that CPAN insists on configuring
itself and gets into an infinite loop of saying inanities like "you
did not allow me to connect to internet, so I will not connect to
internet". 

   As you did not allow me to connect to the internet you need to supply
   a valid CPAN URL now.

   Please enter the URL of your CPAN mirror  
   CPAN needs access to at least one CPAN mirror.


I thought that I could just put CPAN/Config.pm in the right place, but
apparently, it is not working. 

So... How can I auto-configure CPAN without the need to type stuff on
keyboard every time perl is auto-installed?

Thanks!

i
0
Reply Ignoramus14859 4/27/2011 6:22:30 PM

I learned that if I copy my version of CPAN/Config.pm to
~/.cpan/CPAN/MyConfig.pm prior to invoking cpan, everything seems to
work well.

i


On 2011-04-27, Ignoramus14859 <ignoramus14859@NOSPAM.14859.invalid> wrote:
> I am trying to create a fully scripted (inside a makefile) install of
> perl-5.10.1. 
>

....
0
Reply Ignoramus14859 4/27/2011 8:38:50 PM


1 Replies
1203 Views

(page loaded in 0.044 seconds)

Similiar Articles:













7/22/2012 2:24:04 PM


Reply: