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

In the past few weeks I have decided to take up perl. I got a book on it and I tried getting some aim bots just to play around with it and see if I could understand them and get them to work. I needed some thing call net::oscar so I downloaded it and followed the instructions. It said I had to use the command 'make build.pl' but when I tried this it told me 'make' is not recognized as an internal or external command, operable program, or batch file. Why is this? I tried getting module::build to see if that had something to do with it, but that didn't help at all.

Replies are listed 'Best First'.
Re: 'make' command
by fglock (Vicar) on Nov 23, 2004 at 18:40 UTC

    If you are using Windows, you can use nmake (it is ok to rename it to make.exe)

      Just a word of warning, nmake (AKA Microsoft make) and GNU make are two very different beasts.


      "Look, Shiny Things!" is not a better business strategy than compatibility and reuse.


      OSUnderdog
Re: 'make' command
by nimdokk (Vicar) on Nov 23, 2004 at 18:44 UTC
    I would also suggest reading this node as well as this other node for information on Win32 and Perl.
Re: 'make' command
by jdtoronto (Prior) on Nov 23, 2004 at 19:07 UTC
    You don't tell us, but form the error you get you are on Windows. Nor do you tell us which Perl you are using! So why not run perl -v from the command line and tell us what it is!

    If it is an ActiveState build then you can use PPM, which is supplied with the AS distribution, to get the module and install it. It is currently available from the ActiveState PPM repository.

    If you are not using ActiveState Perl then you will need to get nmake from MIcrosoft and use it. Check the tutorials section in the monastery, it has some useful info on installing modules.

    jdtoronto

Re: 'make' command
by ysth (Canon) on Nov 23, 2004 at 19:11 UTC
    I think perhaps you misread it. From the README:
    INSTALLATION
      HOW TO INSTALL
          perl Build.PL
          perl Build
          perl Build test
          perl Build install

    See "perldoc Module::Build" for details. Note that this requires that you have the perl module Module::Build installed. If you don't, the traditional "perl Makefile.PL ; make ; make test ; make install" should still work.

    You need make to run Makefile.PL, but shouldn't need it to run Build.PL: use perl Build.PL instead. (Though you will need to get Module::Build installed to do that.)
Re: 'make' command
by Plankton (Vicar) on Nov 24, 2004 at 05:25 UTC

    If your book is written from a *nix point of view and you gotta a Windows box you might want to look into cygwin. It will give you a *nix interface to your Windows system complete with make and other goodies.