Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Problems accessing CPAN with the shell

by jmanning2k (Pilgrim)
on Dec 11, 2003 at 16:15 UTC ( [id://314069]=note: print w/replies, xml ) Need Help??


in reply to Problems accessing CPAN with the shell

Are you behind a proxy or firewall of any sort? Can you ftp normally using ftp or wget?

Can you show us the output of the command o conf from the CPAN shell?

Not the ideal solution, but to answer your question about reducing these other timeouts: I suspect unsetting ftp, ncftp, ncftpget, wget and lynx will prevent it from using these other methods and only use LWP. Try doing o conf ftp '' for each of these options.

~J

Update:Have you tried a http mirror?

Replies are listed 'Best First'.
Re: Re: Problems accessing CPAN with the shell
by Kjetil (Sexton) on Dec 11, 2003 at 17:50 UTC
    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.

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://314069]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-24 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found