Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
     Oh wisest Monks, I come before you this evening seeking CPAN wisdom. I will offer a little background to my question before preceding. Recently during a local Perl Monger meeting, we discussed setting up a CPAN server to host our group modules and scripts. The idea was to gain experience creating modules and maintainable code (i.e. use MakeMaker or ModuleMaker, test suites, API design, etc.) for use in the local group before coding for and submitting to CPAN. We lovingly dubbed our idea NQCPAN (Not Quite CPAN).

     Idea in hand, I went in search of information. I searched PerlMonks, CPAN FAQ,, Google, everywhere I could think to search. Without a clue as to where to look next, I sent an email to the CPAN folks describing the idea. The reply came quickly, referring me to CPAN::Site and Grokking the CPAN, a presentation given by Elaine Ashton at TPC 5. I read the presentation and quickly went to CPAN to get CPAN::Site. Once installed, I read every line of the CPAN::Site documentation (there is not a lot).

     Following the instructions, I set up a CPAN directory on my web server. I added an alias to apache and restarted; things were looking great. It was very exciting to see modules on the web. Next I set up my local machine to use CPAN::Site. Again, following the documentation for CPAN::Site, I modified my urllist to look to NQCPAN first. When I try to install or get modules from the NQCPAN server, I get the ever- present-when-mistyping-a-module-name error, no module found try i/module/. My first thoughts were that I set up something incorrectly. So, I recreated the site and tried again. Same problem. It then occurred to me that my CPAN index was cached and that I needed to reload it. So I tried reloading the index with reload index. The index did indeed reload, failing on my NQCPAN server as the main module list was not found, and locking in on the next server in the urllist. This was expected as normal CPAN modules should come from the real CPAN. However, the reload index did not pick up the modules from the NQCPAN server. Needless to say, I have not solved this problem. I have tried many different combinations, permissions, symbolic links, urllists, etc., all to no avail.

1. Has anyone else set up a local CPAN server (perhaps at work)?
2. If so, did you take the same approach or do something different?
3. What do the fellow Monks think of an NQCPAN for local groups to share code?

As always, Thank you very much for everything,

In reply to Not Quite CPAN by cmilfo

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (5)
    As of 2020-06-03 23:32 GMT
    Find Nodes?
      Voting Booth?
      Do you really want to know if there is extraterrestrial life?

      Results (29 votes). Check out past polls.