> Did you try typing
> 
>   o conf urllist push ftp://myurl/
> 
> ?

ftp://myurl/ is not an actual url. It's telling you "Put _your_ url here".


> 
> If that doesn't work (okay, it might not be intuitive), try this:
> 
>  mv ~/.cpan ~/.cpan_BROKEN
>  sudo perl -MCPAN -e shell
> 
> and then let things re-initialize.
> 

Or simply `o conf init' at the CPAN prompt. No need to be moving things
around.

This will allow you to configure CPAN, where you can select your sources,
first by geographical region, then by source. Here's what it looks like from
start to finish (please not that '%','#','cpan>' refer to the shell prompts
and should not be typed:
** NOTE: If you don't have a root password or don't know what it is, please
search for "Mac OSX set root password" or similar in google
http://www.google.ca

% su
Password: Enter you root password here.

# perl -MCPAN -eshell
cpan> o conf init

..... cpan config stuff. Accept the defaults (hit return) until you get to
either a prompt to use an existing MIRRORED.BY database or fetch a new one

If it asks you if you want to use a MIRRORED.BY database that exists on your
system and you accept the default yes ([y]) you will not be prompted to
change your sources. So hit `n' here and `return'.

You will then see this:

First, pick a nearby continent and country (you can pick several of
each, separated by spaces, or none if you just want to keep your
existing selections). Then, you will be presented with a list of URLs
of CPAN mirrors in the countries you selected, along with previously
selected URLs. Select some of those URLs, or just keep the old list.
Finally, you will be prompted for any extra URLs -- file:, ftp:, or
http: -- that host a CPAN mirror.

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) []

Select your region, mine is (5) North America so I hit `5' and `return'.

It then breaks it down further:

(1) Canada
(2) Mexico
(3) United States
Select your country (or several nearby countries) []

Again select the option appropriate for you. Which will then give you a list
of sources in that region:

(1) ftp://cpan.chebucto.ns.ca/pub/CPAN/
(2) ftp://cpan.mirror.cygnal.ca/pub/CPAN/
(3) ftp://cpan.sunsite.ualberta.ca/pub/CPAN/ (previous pick)
(4) ftp://ftp.nrc.ca/pub/CPAN/ (previous pick)
(5) ftp://theoryx5.uwinnipeg.ca/pub/CPAN/ (previous pick)
Select as many URLs as you like (by number),
put them on one line, separated by blanks, e.g. '1 4 5'
(or just hit RETURN to keep your previous picks) []

It is beneficial to select multiple sources from this list so that if one
fails it will skip to the next. Choices should be space delimited, meaning a
space between each choice. I've had problems with some on the list so I type
`3 4 5' and hit `return'

If you know of another URL that you would like to use that was not on the
list you can now enter it or simply hit `return' to continue:

Enter another URL or RETURN to quit: []

This is the last step in configuring cpan and you will now be back at the
cpan prompt.

Note that if your region does not come up with many sources, you can select
multiple countries or even multiple continents the same way you select
multiple sources.

Hope this helps.

Cheers,

cschilbe

Reply via email to