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

I have downloaded "activestate perl" for windows 98. looks like I am missing the "dmake or nmake" file, so I can not install the modules that I need. (NET::PING) The instructions for perl install said unzip, install, ready to go. OK great.
Maybe this is not true for the modules.
P.S. PPM also won't work corectly.
maybe I need a dependible site to get the modules?
maybe dmake belongs to another company?
maybe I lost, any clues or info would be greatly. appreciated.
  • Comment on Problem installing Net::Ping on Windows 98

Replies are listed 'Best First'.
Re: Problem installing Net::Ping on Windows 98
by tachyon (Chancellor) on Dec 15, 2003 at 02:24 UTC

    On Win32 you will want to get PPM working, won't work is a fairly useless and generic description.....it does work, you probably have a minor config issue perhaps your firewall or a proxy?

    C:\>ppm install Net::Ping ==================== Install 'Net-Ping-External' version 0.11 in ActivePerl 5.8.0.806. ==================== Installing D:\Perl\html\site\lib\Net\Ping\External.html Installing D:\Perl\site\lib\Net\Ping\External.pm Successfully installed Net-Ping-External version 0.11 in ActivePerl 5. +8.0.806. C:\>ppm ppm> rep Repositories: [1] ActiveState PPM2 Repository [2] ActiveState Package Repository ppm> rep describe 1 Describing Active Repository 1: Name: ActiveState PPM2 Repository Location: http://ppm.ActiveState.com/cgibin/PPM/ppmserver-5.8-windows.pl?urn:/PP +MServer Type: PPMServer 2.0 ppm> rep describe 2 Describing Active Repository 2: Name: ActiveState Package Repository Location: http://ppm.ActiveState.com/PPM/ppmserver-5.8-windows.plex?urn:/PPM/Ser +ver/SQL Type: PPMServer 3.0 ppm> quit C:\>

    If you can't get PPM to work (RTFM or post some detail) then you can just go to AS, get the Module.zip file. Unzip it, and then ppm install Module.ppd

    Get nmake from here http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe

    See A Guide To Installing Modules

    cheers

    tachyon

Re: Problem installing Net::Ping on Windows 98
by Grygonos (Chaplain) on Dec 15, 2003 at 02:15 UTC

    First of all you need to obtain nmake. Here is a link for Nmake1.5. This is a self-extracting archive.

    My first recomendation is that you make a directory under your perl distribution called nmake. Something like c:\Perl\nmake\. Download the file to that location. Run it from that directory so everything unzips to your new nmake directory.

    Then make sure nmake is part of your PATH system variable. Check your autoexec.bat file. You should see a line similar to PATH=C:\WINDOWS;C:\SOANDSO. Add your nmake directory to your path like so PATH=C:\Perl\nmake;C:\WINDOWS;C:\SOANDSO.

    Then you should:

    • open up a DOS prompt
    • move to the directory where you unzipped your module files
    • type the following commands
      • perl makefile.pl
      • nmake
      • nmake test
      • nmake install

    Make sure there are no error messages when installing. Then just drop a use Net::Ping at the top of your script and see if it works

    Addressing your P.S. statement...you should download your modules from Comprehensive Perl Archive Network aka CPAN any module that is highly used by perl coders should be present there

    If you have any questions you can msg me. Hope that helped.

    Grygonos
      First of all you need to obtain nmake.
      Probably, but you can't assume. perl -V:make tells you.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Problem installing Net::Ping on Windows 98
by JamesNC (Chaplain) on Dec 15, 2003 at 05:18 UTC
    I would recommend using Win32::PingICMP over Net::Ping because Net::Ping requires admin rights to execute because it forms the raw icmp message, while the Win32::PingICMP will allow anyone to ping, and achieves the same results. Along with nmake, you might go ahead and download the free .NET c compiler (which has nmake, cl and some other goodies C compiler/linker) .NET SDK... this link will take you to Microsoft's site.

    JamesNC