LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Reconfigure CPAN (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-reconfigure-cpan-314795/)

amer_58 04-19-2005 04:03 AM

How to Reconfigure CPAN
 
I cant change the CPAN configuration, I am trying to install some modules

So I went to :

/usr/lib/perl5/5.8.6/CPAN

and vi Config.pm

I have tried to add my ftp proxy in here:

$CPAN::Config = {
'build_cache' => q[10],
'build_dir' => q[/root/.cpan/build],
'cache_metadata' => q[1],
'cpan_home' => q[/root/.cpan],
'dontload_hash' => { },
'ftp' => q[/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gpg' => q[/usr/bin/gpg],
'gzip' => q[/bin/gzip],
'histfile' => q[/root/.cpan/histfile],
'histsize' => q[100],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/root/.cpan/sources],
'lynx' => q[/usr/bin/lynx],
Read Config.pm, 44 lines, 1234 chars

but it wont work, How can I reconfig my CPAN in order to add my new ftp proxy

Thanks.

amer_58 04-19-2005 05:47 AM

I found the solution:

Type o conf init to reconfigure cpan.


All times are GMT -5. The time now is 10:25 AM.