cpan fails to work after machine relocation

Discussion in 'Perl Misc' started by Josef Moellers, Jul 13, 2009.

  1. Hi,

    In oder not to save some time, I decided to do the upgrade of my work
    machine's Linux distro during the weekend at home, rather than at work.
    Obviously, I have a different network setup at home (a 172.16.0-subnet
    rather than the subnet at work).
    At home, I was able to install several packages from CPAN, however, when
    I tried this here at work, I failed.
    I changed the proxy-URLs in /etc/perl/CPAN/config.pm, but "cpan
    Net::IMAP" terminates with an error message (at the end of this message.

    I'd be prepared to completely re-configure cpan, but don't know what to
    actually remove to do that. Or ... maybe I just miss something so the
    current setup works?

    Josef

    Tail of output at the end of "cpan Net::LDAP":

    CPAN: LWP::UserAgent loaded ok (v2.036)
    CPAN: Time::HiRes loaded ok (v1.86)
    Warning: no success downloading
    '/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz.tmp19657'.
    Giving up on it. at /usr/local/share/perl/5.8.8/CPAN/FTP.pm line 837
    CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0x850abcc)',
    'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
    '/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar....',
    'HASH(0xcdbea24)') called at /usr/local/share/perl/5.8.8/CPAN/FTP.pm
    line 515
    CPAN::FTP::hostdlxxx('CPAN::FTP', 'dlhard', 'undef',
    'ARRAY(0x850abcc)', 'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
    '/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar....',
    'HASH(0xcdbea24)') called at /usr/local/share/perl/5.8.8/CPAN/FTP.pm
    line 442
    CPAN::FTP::localize('CPAN::FTP',
    'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
    '/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz')
    called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 379

    CPAN::Distribution::get_file_onto_local_disk('CPAN::Distribution=HASH(0xbc2fdc8)')
    called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 343
    CPAN::Distribution::get('CPAN::Distribution=HASH(0xbc2fdc8)')
    called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 1677
    CPAN::Distribution::make('CPAN::Distribution=HASH(0xbc2fdc8)')
    called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 2876
    CPAN::Distribution::test('CPAN::Distribution=HASH(0xbc2fdc8)')
    called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 3266

    CPAN::Distribution::install('CPAN::Distribution=HASH(0xbc2fdc8)') called
    at /usr/local/share/perl/5.8.8/CPAN/Module.pm line 474
    eval {...} called at /usr/local/share/perl/5.8.8/CPAN/Module.pm
    line 473
    CPAN::Module::rematein('CPAN::Module=HASH(0xb390900)',
    'install') called at /usr/local/share/perl/5.8.8/CPAN/Module.pm line 576
    CPAN::Module::install('CPAN::Module=HASH(0xb390900)') called at
    /usr/local/share/perl/5.8.8/CPAN/Shell.pm line 1755
    CPAN::Shell::rematein('CPAN::Shell', 'install', 'Net::LDAP')
    called at /usr/local/share/perl/5.8.8/CPAN/Shell.pm line 1935
    CPAN::Shell::__ANON__('CPAN::Shell', 'Net::LDAP') called at
    /usr/local/bin/cpan line 319
    main::_default('ARRAY(0x8154390)') called at
    /usr/local/bin/cpan line 278


    You have not configured a urllist and do not allow connections to the
    internet to get a list of mirrors. If you wish to get a list of CPAN
    mirrors to pick from, use this command

    o conf init connect_to_internet_ok urllist

    If you do not wish to get a list of mirrors and would prefer to set
    your urllist manually, use just this command instead

    o conf init urllist


    --
    These are my personal views and not those of Fujitsu Technology Solutions!
    Josef Möllers (Pinguinpfleger bei FTS)
    If failure had no penalty success would not be a prize (T. Pratchett)
    Company Details: http://de.ts.fujitsu.com/imprint.html
     
    Josef Moellers, Jul 13, 2009
    #1
    1. Advertising

  2. Josef Moellers

    j.keßler Guest

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Josef Moellers wrote:
    > Hi,
    >
    > In oder not to save some time, I decided to do the upgrade of my work
    > machine's Linux distro during the weekend at home, rather than at work.
    > Obviously, I have a different network setup at home (a 172.16.0-subnet
    > rather than the subnet at work).
    > At home, I was able to install several packages from CPAN, however, when
    > I tried this here at work, I failed.
    > I changed the proxy-URLs in /etc/perl/CPAN/config.pm, but "cpan
    > Net::IMAP" terminates with an error message (at the end of this message.
    >
    > I'd be prepared to completely re-configure cpan, but don't know what to
    > actually remove to do that. Or ... maybe I just miss something so the
    > current setup works?
    >
    > Josef
    >
    > Tail of output at the end of "cpan Net::LDAP":
    >
    > CPAN: LWP::UserAgent loaded ok (v2.036)
    > CPAN: Time::HiRes loaded ok (v1.86)
    > Warning: no success downloading
    > '/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz.tmp19657'.
    > Giving up on it. at /usr/local/share/perl/5.8.8/CPAN/FTP.pm line 837
    > CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0x850abcc)',
    > 'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
    > '/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar....',
    > 'HASH(0xcdbea24)') called at /usr/local/share/perl/5.8.8/CPAN/FTP.pm
    > line 515
    > CPAN::FTP::hostdlxxx('CPAN::FTP', 'dlhard', 'undef',
    > 'ARRAY(0x850abcc)', 'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
    > '/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar....',
    > 'HASH(0xcdbea24)') called at /usr/local/share/perl/5.8.8/CPAN/FTP.pm
    > line 442
    > CPAN::FTP::localize('CPAN::FTP',
    > 'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
    > '/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz')
    > called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 379
    >
    > CPAN::Distribution::get_file_onto_local_disk('CPAN::Distribution=HASH(0xbc2fdc8)')
    > called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 343
    > CPAN::Distribution::get('CPAN::Distribution=HASH(0xbc2fdc8)')
    > called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 1677
    > CPAN::Distribution::make('CPAN::Distribution=HASH(0xbc2fdc8)')
    > called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 2876
    > CPAN::Distribution::test('CPAN::Distribution=HASH(0xbc2fdc8)')
    > called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 3266
    >
    > CPAN::Distribution::install('CPAN::Distribution=HASH(0xbc2fdc8)') called
    > at /usr/local/share/perl/5.8.8/CPAN/Module.pm line 474
    > eval {...} called at /usr/local/share/perl/5.8.8/CPAN/Module.pm
    > line 473
    > CPAN::Module::rematein('CPAN::Module=HASH(0xb390900)',
    > 'install') called at /usr/local/share/perl/5.8.8/CPAN/Module.pm line 576
    > CPAN::Module::install('CPAN::Module=HASH(0xb390900)') called at
    > /usr/local/share/perl/5.8.8/CPAN/Shell.pm line 1755
    > CPAN::Shell::rematein('CPAN::Shell', 'install', 'Net::LDAP')
    > called at /usr/local/share/perl/5.8.8/CPAN/Shell.pm line 1935
    > CPAN::Shell::__ANON__('CPAN::Shell', 'Net::LDAP') called at
    > /usr/local/bin/cpan line 319
    > main::_default('ARRAY(0x8154390)') called at /usr/local/bin/cpan
    > line 278
    >

    Hello,

    did you tried what comes with the error message ?(below)
    >
    > You have not configured a urllist and do not allow connections to the
    > internet to get a list of mirrors. If you wish to get a list of CPAN
    > mirrors to pick from, use this command
    >
    > o conf init connect_to_internet_ok urllist
    >
    > If you do not wish to get a list of mirrors and would prefer to set
    > your urllist manually, use just this command instead
    >
    > o conf init urllist
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.11 (GNU/Linux)

    iEYEARECAAYFAkpbCygACgkQE++2Zdc7EtenDACfUgeUupxsc7ulCxR7PdOLlK02
    dqQAoJ0DLNlUVuCPqyF4cAQDgulimpHG
    =T3sB
    -----END PGP SIGNATURE-----
     
    j.keßler, Jul 13, 2009
    #2
    1. Advertising

  3. j.keßler wrote:

    >>

    > Hello,
    >
    > did you tried what comes with the error message ?(below)
    >> You have not configured a urllist and do not allow connections to the
    >> internet to get a list of mirrors. If you wish to get a list of CPAN
    >> mirrors to pick from, use this command


    I noticed this only after I posted the message. Cancelling was probably
    too late. Thing was ... it did work at home!

    Josef
    --
    These are my personal views and not those of Fujitsu Technology Solutions!
    Josef Möllers (Pinguinpfleger bei FTS)
    If failure had no penalty success would not be a prize (T. Pratchett)
    Company Details: http://de.ts.fujitsu.com/imprint.html
     
    Josef Moellers, Jul 13, 2009
    #3
  4. Josef Moellers

    j.keßler Guest

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Josef Moellers wrote:
    > j.keßler wrote:
    >
    >>>

    >> Hello,
    >>
    >> did you tried what comes with the error message ?(below)
    >>> You have not configured a urllist and do not allow connections to the
    >>> internet to get a list of mirrors. If you wish to get a list of CPAN
    >>> mirrors to pick from, use this command

    >
    > I noticed this only after I posted the message. Cancelling was probably
    > too late. Thing was ... it did work at home!
    >
    > Josef

    but it sounds like you have to configure CPAN again.

    anyone else has a suggestion ?

    j.keßler
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.11 (GNU/Linux)

    iEYEARECAAYFAkpbNM4ACgkQE++2Zdc7EtfBBgCaA3eEoDhmAgTu1LEQcGf7KJof
    rkYAnAofFkoSpg1ZFDYxyaqhfvuSxRYl
    =iG7i
    -----END PGP SIGNATURE-----
     
    j.keßler, Jul 13, 2009
    #4
  5. j.keßler wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > Josef Moellers wrote:
    >> j.keßler wrote:
    >>
    >>> Hello,
    >>>
    >>> did you tried what comes with the error message ?(below)
    >>>> You have not configured a urllist and do not allow connections to the
    >>>> internet to get a list of mirrors. If you wish to get a list of CPAN
    >>>> mirrors to pick from, use this command

    >> I noticed this only after I posted the message. Cancelling was probably
    >> too late. Thing was ... it did work at home!
    >>
    >> Josef

    > but it sounds like you have to configure CPAN again.


    Being a person who goes for pragmatic solutions ... I just used my swiss
    army knife (vi ;-) to edit the /etc/perl/CPAN/config.pm to insert the
    URL from the old config.

    It now works.

    Josef
    --
    These are my personal views and not those of Fujitsu Technology Solutions!
    Josef Möllers (Pinguinpfleger bei FTS)
    If failure had no penalty success would not be a prize (T. Pratchett)
    Company Details: http://de.ts.fujitsu.com/imprint.html
     
    Josef Moellers, Jul 13, 2009
    #5
  6. Josef Moellers

    Guest

    On Mon, 13 Jul 2009 15:37:27 +0200, Josef Moellers <> wrote:

    >j.keßler wrote:
    >> -----BEGIN PGP SIGNED MESSAGE-----
    >> Hash: SHA1
    >>
    >> Josef Moellers wrote:
    >>> j.keßler wrote:
    >>>
    >>>> Hello,
    >>>>
    >>>> did you tried what comes with the error message ?(below)
    >>>>> You have not configured a urllist and do not allow connections to the
    >>>>> internet to get a list of mirrors. If you wish to get a list of CPAN
    >>>>> mirrors to pick from, use this command
    >>> I noticed this only after I posted the message. Cancelling was probably
    >>> too late. Thing was ... it did work at home!
    >>>
    >>> Josef

    >> but it sounds like you have to configure CPAN again.

    >
    >Being a person who goes for pragmatic solutions ... I just used my swiss
    >army knife (vi ;-) to edit the /etc/perl/CPAN/config.pm to insert the
    >URL from the old config.
    >
    >It now works.
    >
    >Josef


    Aren't you supposed to be able to do that without modifying a .pm file?

    -sln
     
    , Jul 15, 2009
    #6
  7. wrote:
    > On Mon, 13 Jul 2009 15:37:27 +0200, Josef Moellers <> wrote:
    >
    >> j.keßler wrote:
    >>> -----BEGIN PGP SIGNED MESSAGE-----
    >>> Hash: SHA1
    >>>
    >>> Josef Moellers wrote:
    >>>> j.keßler wrote:
    >>>>
    >>>>> Hello,
    >>>>>
    >>>>> did you tried what comes with the error message ?(below)
    >>>>>> You have not configured a urllist and do not allow connections to the
    >>>>>> internet to get a list of mirrors. If you wish to get a list of CPAN
    >>>>>> mirrors to pick from, use this command
    >>>> I noticed this only after I posted the message. Cancelling was probably
    >>>> too late. Thing was ... it did work at home!
    >>>>
    >>>> Josef
    >>> but it sounds like you have to configure CPAN again.

    >> Being a person who goes for pragmatic solutions ... I just used my swiss
    >> army knife (vi ;-) to edit the /etc/perl/CPAN/config.pm to insert the
    >> URL from the old config.
    >>
    >> It now works.
    >>
    >> Josef

    >
    > Aren't you supposed to be able to do that without modifying a .pm file?


    TMTOWTDI ;-)

    In the end, any other way will most likely modify the .pm file anyhow,
    whether I'm using The Official Way(tm) or sneaking in through the back
    door. I like having someone lead the way if I'm unfamiliar with things,
    but sometimes I just take a shortcut, especially if I've switched to
    frantic mode.

    As to whether a .pm file should be modified at all: that's a
    configuration file in the form of a Perl Module, much like a number of
    configuration files in some Linux distributions' /etc/default are shell
    scripts. But you probably know that.

    Josef
    --
    These are my personal views and not those of Fujitsu Technology Solutions!
    Josef Möllers (Pinguinpfleger bei FTS)
    If failure had no penalty success would not be a prize (T. Pratchett)
    Company Details: http://de.ts.fujitsu.com/imprint.html
     
    Josef Moellers, Jul 16, 2009
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. carl d.
    Replies:
    1
    Views:
    393
    A. Sinan Unur
    May 10, 2005
  2. Replies:
    5
    Views:
    208
    Randy Kobes
    Oct 12, 2005
  3. Ben Bullock
    Replies:
    12
    Views:
    288
    Ben Bullock
    Jul 8, 2008
  4. SVCitian
    Replies:
    1
    Views:
    953
    SVCitian
    Oct 22, 2010
  5. PerlFAQ Server
    Replies:
    0
    Views:
    169
    PerlFAQ Server
    Jan 24, 2011
Loading...

Share This Page