in reply to Re: Problems accessing CPAN with the shell
in thread Problems accessing CPAN with the shell

No proxy. I've got IPTables running on all machines, but the OUTPUT chain is open. Normal ftp and everything is working well. Here's an output from o conf (on a different machine than before, but they both have the same problem):
cpan> o conf CPAN::Config options from /etc/perl/CPAN/Config.pm: commit Commit changes to disk defaults Reload defaults from disk init Interactive setting of all options build_cache 10 build_dir /var/cache/cpan/build cache_metadata 1 cpan_home /var/cache/cpan/ cpan_version_check 1 dontload_hash ftp /usr/bin/ftp ftp_proxy getcwd cwd gpg /usr/bin/gpg gzip /bin/gzip histfile /var/cache/cpan/histfile histsize 100 http_proxy inactivity_timeout 0 index_expire 1 inhibit_startup_message 0 keep_source_where /var/cache/cpan/sources lynx /usr/bin/lynx make /usr/bin/make make_arg make_install_arg makepl_arg ncftpget /usr/bin/ncftpget no_proxy pager /usr/bin/less prerequisites_policy ask scan_cache atstart shell /bin/bash tar /bin/tar term_is_latin 1 unzip /usr/bin/unzip urllist ftp://ftp.uninett.no/pub/languages/perl/CPAN ftp://ftp.funet.fi/pub/languages/perl/CPAN/ ftp://ftp.uit.no/pub/languages/perl/cpan/ ftp://ftp.du.se/pub/CPAN/ wget /usr/bin/wget
Actually, it is ncftpget, wget and lynx CPAN falls back to after a trail and error period with LWP and Net::FTP. Not that I really think LWP is any worse, but it is not any better either.

As for HTTP mirrors, I haven't tried one, when you ask. I'll add one and see what happens. Update: No improvement using a HTTP mirror.

Replies are listed 'Best First'.
Re: Re: Re: Problems accessing CPAN with the shell
by jmanning2k (Pilgrim) on Dec 11, 2003 at 20:13 UTC
    If LWP and Net::FTP are failing, but the command line tools are working, try this command in a CPAN shell.
    o conf dontload_hash "{ 'Net::FTP' => 1, 'LWP::UserAgent' => 1 }"

    This should make it skip the perl modules and jump right to the command line tools.

    My next step would probably be to reinstall LWP and Net::FTP. Perhaps newer versions or a reinstall will fix the issues you are having. Or, just be happy with wget, ncftpget, and lynx.

    ~J

    Update: Don't forget to do a o conf commit to save the CPAN config changes for future sessions.