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 UTC

A 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)


In reply to Minicpan mirror on lan, not working with cpanplus client by Intrepid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.