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

Dear Monks:

I'm trying to install zzamboni's Perlmonks modules 2.0 on Windows 2000 Professional.

So, I'm following tachyon's directions, pointed on A Guide to Installing Modules.

My problem is that I can't pass the first step, wich is:
Perl Makefile.PL
Since this module extracts a Makefile (without extension), I've typed - you guessed it:
Perl Makefile
Here's what I get:
Bareword found where operator expected at makefile line 3, near "cp $$ HOME/tmp" (Might be a runaway multi-line // string starting on line 2) (Do you need to predeclare cp?) Bareword found where operator expected at makefile line 7, near "cp $$ HOME/tmp" (Might be a runaway multi-line // string starting on line 6) (Do you need to predeclare cp?) syntax error at makefile line 2, near "cvs -d " Execution of makefile aborted due to compilation errors.
Anyone can help me here? What should I do?

TIA, my ($author_nickname, $author_email) = ("DaWolf","erabbott\@terra.com.br") if ($author_name eq "Er Galvão Abbott");

Replies are listed 'Best First'.
Re: Installing Perlmonks modules on Win32
by tachyon (Chancellor) on May 09, 2002 at 03:45 UTC

    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

      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

Re: Installing Perlmonks modules on Win32
by Kanji (Parson) on May 09, 2002 at 01:52 UTC

    You're not following the directions correctly...

    After perl Makefile.PL you need to run make, or whatever your local equivalent is.

    On Win32, that's likely to be either nmake or the Perl-based pmake, both of which need to be downloaded and installed before use.

    Update: Ah sorry, misread: there is no Makefile.PL shipped with PerlMonks modules 2.0 so you would normally just skip to the make part of installing.

    However, looking over the Makefile that is included, it looks like you'd be better off just copying the modules directly into your Perl tree ... this is one of those times when the rules do not apply!

        --k.


Re: Installing Perlmonks modules on Win32
by dws (Chancellor) on May 09, 2002 at 04:13 UTC
    I'm trying to install zzamboni's Perlmonks modules 2.0 on Windows 2000 Professional. ...

    The Makefile route is the traditional way to install, but because there's nothing in this package to compile (i.e., no .xs files), you can copy pieces into the "right" place by hand. Take a look at the Readme in the .zip file. If you have Admin privs on the machine, you can copy them into C:\perl\site\lib\ by hand (after making a subdirectory).

      you can copy them into C:\perl\site\lib\ by hand (after making a subdirectory).

      ...or you can write a two line makefile to do it for you as one might gently suggest the author could have done.

      cheers

      tachyon

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

        ...or you can write a two line makefile to do it for you as one might gently suggest the author could have done.

        Ah, but why would I make that suggestion when it requires installing nmake? The package in question has no XS components. I've done by-hand Win32 installs of XS-less CPAN modules without nmake for several years now, to no ill effect.

Re: Installing Perlmonks modules on Win32
by Zaxo (Archbishop) on May 09, 2002 at 01:49 UTC

    If Makefile is already there, just run your 'make' utility: 'make', 'nmake', or 'gmake'. Those are not identical, so you may need to look at README or INSTALL files.

    After Compline,
    Zaxo