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

I've create the base for a perl module dev tree using h2xs under Activestate 5.8.8 build 822. and XP.

It contains one module, a .pm that should install at the root of the site/lib tree.

If I install with "nmake install, it works fine.

I then try to package it ('nmake tardist', 'nmake ppd', edit ppd to reference .tar.gz file).

I take the two files to a different system (Vista) and try ppm install <ppd file>. I see messages:
syncing the .packlist file
'unpacking <package name> file...done'
'updating file in the site area...done'

No mention of the particular .pm file that's the subject of this whole exercise, and the file is not copied to the site tree.

I unpacked the .tar.gz file, and sure enough, my file is there under a 'lib' folder, but the blib folder is not there.

I tried the debug environment variable, but no mention of event trying to copy the file.

Am I doing something wrong here, or have things changed with the newer version of perl?

Any ideas on troubleshooting this?

Thank you in advance.

Replies are listed 'Best First'.
Re: troubleshooting PPM install
by syphilis (Archbishop) on Jul 09, 2008 at 23:12 UTC
    I unpacked the .tar.gz file, and sure enough, my file is there under a 'lib' folder, but the blib folder is not there.

    Yes, the tarball needs to contain the "blib". I've always created the ppm tarball by running tar cvf My-Mod.tar blib followed by gzip --best My-Mod.tar as I have both 'tar' and 'gzip' utilities in my path.

    There are, of course, other ways - such as randyk's PPM::Make.

    Cheers,
    Rob
      Thank You.
Re: troubleshooting PPM install
by Anonymous Monk on Jul 10, 2008 at 03:08 UTC
    tardist/zipdist/uudist...dist is not for creating ppm packages, the best you can do with make is a ppd
      That makes sense now.. Thank You