hdrews has asked for the wisdom of the Perl Monks concerning the following question:

I am just getting started with perl and CPAN. In the CPAN shell, I type in install Bundle::CPAN. It goes through my URLLIST and the defaults trying to find the bundle but it never does. Is there a link I can add to my URLLIST to help it find the Bundle::CPAN? Thanks.

Replies are listed 'Best First'.
Re: install Bundle::CPAN help
by atcroft (Abbot) on May 17, 2007 at 18:38 UTC

    Have you tried to see if you can reach the sites listed in your URLLIST, through something like lynx or another browser on the machine, to make sure there isn't something blocking you?

    If you need/wish to try additional CPAN mirrors, the current list can be found on the CPAN website.

      Should I just have to put in this URL (eg.: http://ftp.wayne.edu/cpan/) ? Nothing else?

        If you're in the CPAN shell (by, for example, issuing the command perl -MCPAN -e 'shell;'), then you would do something like:

        o conf urllist http://ftp.wayne.edu/cpan/ o conf commit
        (The last line saves the changes to the configuration.) As mr_mischief suggested, you probably would want to have more than one mirror you were trying to reach, so you might do something like:
        o conf urllist http://ftp.wayne.edu/cpan/ http://mirror.sit.wisc.edu/p +ub/CPAN/ o conf commit

        According to the documentation for CPAN.pm, 'o conf urllist ' can also be followed by the commands unshift, shift, push, pop, splice, and list to examine or update the configuration option.

        Hope that helps.

        I always choose at least 3 to 5 sites for CPAN. Sites come up, they go down, their directory structure changes, etc. It's good to have mirrors.


        Christopher E. Stith