in reply to Installing Perlmonks modules on Win32

This is a somewhat non-CPAN standard distribution. There is no Makefile.PL as such. Add this Makefile.PL to the root and the install will proceed as usual. Note the single test script in t/ ends with .pl (not .t) so does not run automatically (you won't get anything when you nmake test so don't even bother)

use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'PerlMonks' );

Save this as Makefile.PL then just perl Makefile.PL; nmake; nmake install as usual.

Update

crazyinsomniac has a better makefile that installs the .pl files in /perl/bin as .pl and .bat files. I was far to cursory in my examination of the module....

use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'PerlMonks', 'EXE_FILES' => ["getchat.old.pl", "getchat.pl", "getpage.pl", +"pmpager.pl" ], );

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
(crazyinsomniac: multi-line makefile) Re^2 Installing Perlmonks modules on Win32
by crazyinsomniac (Prior) on May 10, 2002 at 01:19 UTC
    Before I saw your 2line makefile, I wrote my own, with manifest, so here it is:
    # Makefile.PL use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( 'NAME' => 'PerlMonks', ## 'VERSION_FROM' => 'PerlMonks.pm', # finds $VERSION ## 'ABSTRACT_FROM' => 'PerlMonks.pm', 'AUTHOR' => 'ZZamboni of PerlMonks.org fame', 'DISTNAME' => 'PerlMonksChat2', 'EXE_FILES' => ["getchat.old.pl", "getchat.pl", "getpage.pl", +"pmpager.pl" ], ,); # MANIFEST ChangeLog Makefile PerlMonks.pm PerlMonksChat.pm README getchat.old.pl getchat.pl getpage.pl pmchat pmpager.pl Makefile.PL MANIFEST PerlMonks\Chat.pm PerlMonks\NewestNodes.pm PerlMonks\Users.pm test\nodetypes test\testnn.pl

     
    ______crazyinsomniac_____________________________
    Of all the things I've lost, I miss my mind the most.
    perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

      It was a three line Makefile.PL but like you I had to kill the VERSION_FROM bit as there is no $VERSION in it. I never use ABSRACT_FROM because it chokes on older perls. I should have included the EXE_FILES key (bad tachyon) as this gets nmake() to install these files in /perl/bin as .pl and .bat files

      As you also note I ignored the MANIFEST issue. When MakeMaker can't find a MANIFEST it just ignores the issue.

      Hat's off for doing it more thoroughly!

      use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'PerlMonks', 'EXE_FILES' => ["getchat.old.pl", "getchat.pl", "getpage.pl", "p +mpager.pl" ], );

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print