On Sat, 19 Jan 2002, Bruce A. Burdick, Jr. wrote:
> This is what seems to work (for a fink-installed wget -- others would
> likely use /usr/bin/wget). From inside the cpan shell:
>
> o conf wget "/sw/bin/wget --passive-ftp"
>
> I also had to disable ftp, ncftp, and lynx:
>
> o conf ftp ""
> o conf ncftp ""
> o conf lynx ""
>
> One problem: these settings don't remain between CPAN sessions. Any
> ideas? Have I taken an unwise route?
You should have a file something like this:
~/.cpan/CPAN/MyConfig.pm
It ought to be editable. Here's what mine shows:
$CPAN::Config = {
'build_cache' => q[10],
'build_dir' => q[/Volumes/Data/Chris/.cpan/build],
'cache_metadata' => q[1],
'cpan_home' => q[/Volumes/Data/Chris/.cpan],
'dontload_hash' => { },
'ftp' => q[/usr/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gzip' => q[/usr/bin/gzip],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/Volumes/Data/Chris/.cpan/sources],
'lynx' => q[/usr/local/bin/lynx],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'makepl_arg' => q[],
'ncftpget' => q[/usr/bin/ncftpget],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'prerequisites_policy' => q[follow],
'scan_cache' => q[atstart],
'shell' => q[/bin/tcsh],
'tar' => q[/usr/bin/tar],
'term_is_latin' => q[1],
'unzip' => q[/usr/bin/unzip],
'urllist' => [q[ftp://archive.progeny.com/CPAN/]],
'wait_list' => [q[wait://ls6.informatik.uni-dortmund.de:1404]],
'wget' => q[/sw/bin/wget],
};
1;
__END__
It looks like you ought to be able to edit it and make these sort of
long-term changes stick. Alterrnatively, I thought it was possible to
re-run the CPAN config process -- assuming you want to spend 10 minutes or
so and start over from scratch -- but off the top of my head I can't
recall how you would initiate that. Still, minor tweaks of this file
should be quicker & easier anyhow.
--
Chris Devers
"People with machines that think, will in times of crisis,
make up stuff and attribute it to me" - "Nikla-nostra-debo"