TGI has asked for the wisdom of the Perl Monks concerning the following question:

I recently uploaded my first CPAN module, which is yet another logging module--yeah, I know, it least it isn't a text templating module. I tried to do everything the right way, but my module doesn't show up in the search. I even registered the namespace.

I used MakeMaker to package my distribution, h2xs to build the framework (it isn't an xs module, but h2xs works well enough to lay things out that I haven't looked for a different way to generate my templates).

Looking at my directory on CPAN, I see the registered distribution, but when I click on the name, I get a not found message. The file is present--but it doesn't seem to have been indexed. I tried reindexing my file, but nothing changed.

The only clue I have is the note in the CPAN FAQ that a version number starting with an underscore (_) indicates that a file is a development version and should not be indexed combined with the note from the CPAN indexer

The following report has been written by the PAUSE namespace indexer. Please contact modules@perl.org if there are any open questions. Id: mldistwatch 645 2005-09-19 06:41:20Z k User: DAOTOAD (Mark Swayne) Distribution file: Log-WithCallbacks-1.00.tar.gz Number of files: 6 *.pm files: 1 README: No README found META.yml: Log-WithCallbacks-1.00/META.yml Timestamp of file: Thu Sep 29 20:11:21 2005 UTC Time of this run: Wed Oct 26 04:45:50 2005 UTC The following packages (grouped by status) have been found in the dist +ro: Status: Successfully indexed ============================ module: Log::WithCallbacks version: undef in file: Log-WithCallbacks-1.00/lib/Log/WithCallbacks.pm status: indexed __END__

Note that the version is listed as 'undef'. I'm not sure if that is the cause of the problem, but the FAQ entry makes me suspicious. I'm unsure why the version would be undef, as MakeMaker didn't have any trouble understanding my VERSIONFROM directive.

My assumption is that I've screwed up in some basic way--but I failed to google up an answer. I thought I'd turn to the Monastery for help before I hit up the modules list.


TGI says moo

Replies are listed 'Best First'.
Re: Distribution not found on CPAN
by Joost (Canon) on Oct 26, 2005 at 17:42 UTC
    This is what I get if I try to extract the tar.gz file:
    $ tar zxf Log-WithCallbacks-1.00.tar.gz tar: Log-WithCallbacks-1.00/lib/Log: Cannot mkdir: Permission denied tar: Log-WithCallbacks-1.00/lib/Log/WithCallbacks.pm: Cannot open: Per +mission denied tar: Log-WithCallbacks-1.00/html/docs.css: Cannot open: Permission den +ied tar: Error exit delayed from previous errors
    The problem seems to be that the directories in the archive are non-executable:
    $ tar vztf Log-WithCallbacks-1.00.tar.gz drw-rw-rw- Mark/ 0 2005-09-29 22:04:53 Log-WithCallbacks-1 +.00 drw-rw-rw- Mark/ 0 2005-09-29 22:04:53 Log-WithCallbacks-1 +.00/html drw-rw-rw- Mark/ 0 2005-09-29 22:04:53 Log-WithCallbacks-1 +.00/lib -rw-rw-rw- Mark/ 549 2005-09-29 21:22:29 Log-WithCallbacks-1 +.00/Makefile.PL -rw-rw-rw- Mark/ 106 2005-09-29 22:02:18 Log-WithCallbacks-1 +.00/MANIFEST -rw-rw-rw- Mark/ 328 2005-09-29 22:04:52 Log-WithCallbacks-1 +.00/META.yml drw-rw-rw- Mark/ 0 2005-09-29 22:04:53 Log-WithCallbacks-1 +.00/t -rw-rw-rw- Mark/ 573 2005-09-29 21:56:03 Log-WithCallbacks-1 +.00/t/Basic.t drw-rw-rw- Mark/ 0 2005-09-29 22:04:53 Log-WithCallbacks-1 +.00/lib/Log -rw-rw-rw- Mark/ 9548 2005-09-29 21:54:30 Log-WithCallbacks-1 +.00/lib/Log/WithCallbacks.pm -rw-rw-rw- Mark/ 2226 2003-05-02 06:35:52 Log-WithCallbacks-1 +.00/html/docs.css
    I've never had this problem with makemaker myself, but maybe you should check the permissions in your source tree first...

      I think the problem is with my TAR program, not MakeMaker--I am using, shudder, Windows. As much as I hate it, I can't seem to break free.


      TGI says moo