This is a discussion on g-cpan.pl how to change source of download ? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> P4_2400 root # g-cpan.pl List::Uniq mkdir /tmp/perl-modules_22355 mkdir /tmp/perl-modules_22355/dev-perl CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| P4_2400 root # g-cpan.pl List::Uniq mkdir /tmp/perl-modules_22355 mkdir /tmp/perl-modules_22355/dev-perl CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Sat, 11 Dec 2004 05:55:51 GMT CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://mirror.uni-c.dk/pub/CPAN/authors/01mailrc.txt.gz P4_2400 root # Well ftp://mirror.uni-c.dk is not responding. Question: How to make g-cpan.pl use another source? |
| |||
| Lars H. skrev: > Question: > How to make g-cpan.pl use another source? Use the source, Luke :-) It appears that g-cpan.pl uses the cpan configuration, and the conf data are stored in the .cpan directory under /root. Just run cpan as root & pump your way through the questions until you reach the interesting part. -- Leif Biberg Kristensen http://solumslekt.org/ |
| |||
| Leif B. Kristensen skrev: > It appears that g-cpan.pl uses the cpan configuration, and the conf > data are stored in the .cpan directory under /root. Just run cpan as > root & pump your way through the questions until you reach the > interesting part. If you already have configured the cpan options, there are at least two ways to reinitialize: 1) the obvious one: rm -rf /root/.cpan. 2) the preferred one: start cpan, an enter "o conf init" at the prompt. When you arrive at the country list you can enter several countries separated by spaces, eg. 7 21 29 <Enter> for Denmark, Norway & Sweden. Then you'll get a listing of 8 different sites. I just selected them all, by pressing 1 2 3 4 5 6 7 8 <Enter>. med vennlig hilsen -- Leif Biberg Kristensen http://solumslekt.org/ |
| |||
| Leif B. Kristensen wrote: > Leif B. Kristensen skrev: > >> It appears that g-cpan.pl uses the cpan configuration, and the conf >> data are stored in the .cpan directory under /root. Just run cpan as >> root & pump your way through the questions until you reach the >> interesting part. > > If you already have configured the cpan options, there are at least two > ways to reinitialize: 1) the obvious one: rm -rf /root/.cpan. 2) the > preferred one: start cpan, an enter "o conf init" at the prompt. > > When you arrive at the country list you can enter several countries > separated by spaces, eg. 7 21 29 <Enter> for Denmark, Norway & Sweden. > Then you'll get a listing of 8 different sites. I just selected them > all, by pressing 1 2 3 4 5 6 7 8 <Enter>. > > med vennlig hilsen Well none of this works, but gave me the idea of looking at /usr/lib/perl5/5.8.5/CPAN/Config.pm This however shows the problem just deleted the file /usr/lib/perl5/5.8.5/CPAN/Config.pm and ran your 2. solution to the problem. Yes doing a "rm -rf /root/.cpan" doesn't reset. Has to delete the /usr/lib/perl5/5.8.5/CPAN/Config.pm file and then as you say "start cpan, an enter "o conf init" at the prompt." |
| |||
| Lars H. skrev: > Yes doing a "rm -rf root.cpan" doesn't reset. I deliberately munged that path. Thought you'd figure it out if you had the wits to do it right. Anyways, it's a stunt, and not the canonical way. > Has to delete the > /usr/lib/perl5/5.8.5/CPAN/Config.pm file and then as you say > "start cpan, an enter "o conf init" at the prompt." Interesting. I hadn't thought of doing it that way; I found method (2) perfectly satisfying. Pythonically but not particularly Perlishly, yours -- Leif Biberg Kristensen I don't have a hardware problem -- I can quit buying hardware whenever I want! |
| ||||
| Leif B. Kristensen wrote: > Lars H. skrev: > >> Yes doing a "rm -rf root.cpan" doesn't reset. > > I deliberately munged that path. Thought you'd figure it out if you had > the wits to do it right. Anyways, it's a stunt, and not the canonical > way. > >> Has to delete the >> /usr/lib/perl5/5.8.5/CPAN/Config.pm file and then as you say >> "start cpan, an enter "o conf init" at the prompt." > > Interesting. I hadn't thought of doing it that way; I found method (2) > perfectly satisfying. > > Pythonically but not particularly Perlishly, yours > -- > Leif Biberg Kristensen > I don't have a hardware problem -- > I can quit buying hardware whenever I want! First thanks, Could it be that your 2), where it still is possible to connect to the entered URL(s), works. But when only having one URL in the configuration, that doesn't work - the situation I had, deleting /usr/lib/perl5/5.8.5/CPAN/Config.pm is nessary. Again thanks. |