Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: Problem Starting CPAN Shell with

by monkfan (Curate)
on Sep 02, 2008 at 06:04 UTC ( #708388=note: print w/replies, xml ) Need Help??

in reply to Re: Problem Starting CPAN Shell with
in thread Problem Starting CPAN Shell with

Try HTTP instead.
Hi Bart,
How do you do that?

  • Comment on Re^2: Problem Starting CPAN Shell with

Replies are listed 'Best First'.
Re^3: Problem Starting CPAN Shell with
by bart (Canon) on Sep 02, 2008 at 07:02 UTC
    How do you do that?
    By adding HTTP URLs in the URL-list. The main tool to manage that list is "o conf" in the CPAN shell.

    You can see the current contents (under "urllist") with just "o conf", or, more limited in output, with "o conf urllist".

    You can replace the whole URL-list with, for example (this is the contents I have, which must have been put there by default):

    o conf urllist

    You can also add a URL to the existing list with shift and push, like this:

    o conf urllist push o conf urllist unshift
    or drop the first or last entry resp. with
    o conf urllist shift o conf urllist pop

    You must save the changes with

    o conf commit
    or you can rollback (after a disastrous mistake) with
    o conf defaults


      Thank you very much for step by step instructions. I am a perl / Linux newbie and was trying to get some perl modules installed for past 2 days. Even though my firewall was allowing ftp, somehow I couldn't download the required modules using ftp. As soon as i added https to my cpan config file, things worked flawlessly. Thanks again
      Um. . .if you could get to a CPAN shell without going through this we wouldn't be having this conversation, right?

      after much frustration, the following worked for me:

      1. cpan <-- answer "no" to initial setup.
        This allows (auto configured) file (see below) to be initialised. Previously I think this file had "1;" or something helpful in it!
      2. I then added:
        'dontload_hash' => {"Net::FTP" => 1, "LWP" =>1 }, # disable Net::FTP + and LWP which usually hang to: /usr/lib/perl5/5.8.8/CPAN/ - see section: $CPAN::Config = { ...
        but this alone did not seem to do the job. I'm still not sure if this step had any effect.
      3. (in cpan shell)
        o conf urllist o conf commit quit

      worked for me - thanks!

      20100528 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips

      So I did ... # perl -MCPAN -e 'shell' And then ... cpan> o conf urllist cpan> exit Terminal does not support GetHistory. Lockfile removed. But when I do # cpan I still get ... Fetching with Net::FTP: Fetching with Net::FTP
        # perl -MCPAN -e 'shell'
        And then ...
        cpan> o conf urllist http://cpan.p cpan> exit Terminal does not support GetHistory. Lockfile removed.

        You did not save your configuration. Before leaving the CPAN shell, you need the

        o conf commit

        command. Just like the posts instructed you.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://708388]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2018-07-16 00:42 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (330 votes). Check out past polls.