Intrepid has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks and nuns of the Monastery. I'm having trouble setting up cpanplus running on Gnu/Linux to use a partial cpan mirror (a Mini-cpan created with the code of that name) ...on another Linux system on my LAN. On that server I have apache running and serving (a few) static web pages successfully. I acknowledge that this question may have less to do with Perl and more with system administration & configuration, but there are undoubtedly monks here who are very good at that stuff too.
Here's a snippet of what my cpanplus config currently holds:
$Conf->{'conf'}->{'hosts'} = [ { 'scheme' => 'http', 'path' => '/www/public/minicpan', 'host' => '192.168.1.7' }, { 'scheme' => 'http', 'path' => '/', 'host' => 'www.cpan.org' }, ];
I've tried the following variations on path =>:
/minicpan /public/minicpan /www/public/minicpan
But none of these work. The failure is seen as
CPAN Terminal> i Archive::Any --verbose Installing Archive::Any (0.0946) [MSG] Trying to get 'http://192.168.1.7/www/public/minicpan/authors/ +id/O/OA/OALDERS/Archive-Any-0.0946.tar.gz' Fetch failed! HTTP response: 404 Not Found [404 Not Found] at /usr/l +ocal/lib/perl5/site_perl/CPANPLUS/Internals/Fetch.pm line 398.
That's pretty clear. One more detail I ought to add is that my minicpan is actually located in /var/mirrors/minicpan:
total 32 drwxr-xr-x 3 somian somian 4096 Jun 23 14:51 authors drwxr-xr-x 2 somian somian 4096 Jun 23 14:51 modules -rw-r--r-- 1 somian somian 23768 Jun 23 14:51 RECENT
and I've made a symlink to /var/mirrors/minicpan from /var/www/public/minicpan. Does this seem like a sane setup? I'd be really jazzed if I could get it to work. Thanks in advance for giving me a look.
Soren
Jun 26, 2025 at 19:35 UTCA just machine to make big decisions
Programmed by fellows (and gals) with compassion and vision
We'll be clean when their work is done
We'll be eternally free yes, and eternally young
Donald Fagen —> I.G.Y.
(Slightly modified for inclusiveness)
|
---|