Hi, I tried this (unshift) and I still get the problem - see the cut/paste below. However, commiting changes works well.
ibm600x:~ # perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.61) ReadLine support enabled cpan> cpan> cpan> o conf urlist urlist ftp://cpan.nas.nasa.gov/pub/perl/CPAN Type 'o conf' to view configuration edit options cpan> install Net::IMAP CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Warning: Found only 0 objects in /root/.cpan/Metadata CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/authors/01mailrc.txt.gz LWP failed with code[404] message[Can't chdir to authors] Fetching with Net::FTP: ftp://ftp.perl.org/authors/01mailrc.txt.gz Couldn't cwd authors at /usr/lib/perl5/5.8.0/CPAN.pm line 2182. Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/authors/01mailrc.txt.gz --08:12:44-- ftp://ftp.perl.org/authors/01mailrc.txt.gz => `-' Resolving ftp.perl.org... failed: Name or service not known. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/authors/01mailrc.txt.gz" > /root/.cpan/sources/authors/01mailrc.txt" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist Issuing "/usr/bin/ftp -n" ftp: Name or service not known Not connected. Local directory now /root/.cpan/sources/authors Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! Can't access URL ftp://ftp.perl.org/authors/01mailrc.txt.gz. Please check, if the URLs I found in your configuration file (ftp://ftp.perl.org/) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz Fetching with LWP: ftp://ftp.perl.org/modules/02packages.details.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org'] Fetching with Net::FTP: ftp://ftp.perl.org/modules/02packages.details.txt.gz Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/modules/02packages.details.txt.gz --08:12:52-- ftp://ftp.perl.org/modules/02packages.details.txt.gz => `-' Resolving ftp.perl.org... failed: Name or service not known. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/modules/02packages.details.txt.gz" > /root/.cpan/sources/modules/02packages.details.txt" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/modules/02packages.details.txt.gz] doesn't exist Issuing "/usr/bin/ftp -n" ftp: Name or service not known Not connected. Local directory now /root/.cpan/sources/modules Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! Can't access URL ftp://ftp.perl.org/modules/02packages.details.txt.gz. Please check, if the URLs I found in your configuration file (ftp://ftp.perl.org/) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch modules/02packages.details.txt.gz Fetching with LWP: ftp://ftp.perl.org/modules/03modlist.data.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org'] Fetching with Net::FTP: ftp://ftp.perl.org/modules/03modlist.data.gz Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/modules/03modlist.data.gz --08:12:56-- ftp://ftp.perl.org/modules/03modlist.data.gz => `-' Resolving ftp.perl.org... failed: Name or service not known. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/modules/03modlist.data.gz" > /root/.cpan/sources/modules/03modlist.data" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/modules/03modlist.data.gz] doesn't exist Issuing "/usr/bin/ftp -n" ftp: Name or service not known Not connected. Local directory now /root/.cpan/sources/modules Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! Can't access URL ftp://ftp.perl.org/modules/03modlist.data.gz. Please check, if the URLs I found in your configuration file (ftp://ftp.perl.org/) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch modules/03modlist.data.gz Going to write /root/.cpan/Metadata Warning: Cannot install Net::IMAP, don't know what it is. Try the command i /Net::IMAP/ to find objects with matching identifiers. If you have further suggestions I would appreciate it... Thanks, John -----Original Message----- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 8:08 AM To: John Birkhead; '[EMAIL PROTECTED]' Subject: RE: Problems with CPAN ------------------------------------------------ On Wed, 17 Sep 2003 07:27:46 -0700, John Birkhead <[EMAIL PROTECTED]> wrote: > Hi, > I'm a perl newbie and I'm having problems getting CPAN connecting > and downloading on SuSE 8.2. I start with 'perl -MCPAN -e shell' but the > urlist is undefined. The default of 'ftp.perl.org' doesn't work. > > If I 'o conf urlist push ftp://cpan.nas.nasa.gov/pub/perl/CPAN' (or other > mirror sites I've tried) when I download this url appears to be ignored and > the downloads are attempted from the default. > Don't know for sure but you may want to 'unshift' rather than push the URL, though it should fall through if the first fails. > It also appears that when I exit and restart CPAN it has forgotten the url I > added. > You have to 'commit' the changes made with 'o conf' directives for them to be saved. 'o conf commit' should do the trick. > Does anyone have any guidance??? > > HTH, http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]