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

Hi all, I am new to perl but I have succeded doing an script that needs the Number::Compare module. I have downloaded the module to Linux and installed it but I also need to run this script on Windows, the problem is that I can't find any installation of this module on Windows. That is I haven't found any Build.PL. Anyone that knows how I can get the Number::Compare module installed to my windows? Thanks Thomas

Replies are listed 'Best First'.
Re: Number::Compare on Windows?
by perlsen (Chaplain) on Feb 08, 2005 at 09:50 UTC

    Hi, in that Number::Compare module there is the pl file named makefile.pl is used to build the module.
    if u r not clear pls follow the below steps for installation process.

      If you're running Windows 95 or NT with the core Windows distribution of Perl,

      A. DECOMPRESS

      When you download the module, make sure it ends in either .tar.gz or .zip. Windows browsers sometimes download .tar.gz files as _tar.tar, because early versions of Windows prohibited more than one dot in a filename.

      You can use WinZip (shareware) to decompress and unpack modules.

      Or, you can use InfoZIP's unzip utility to uncompress .zip files; type unzip yourmodule.zip in your shell.

      Or, if you have a working tar and gzip, you can type

      gzip -cd yourmodule.tar.gz | tar xvf -

      in the shell to decompress yourmodule.tar.gz. This will UNPACK your module as well.

      B. UNPACK

      All of the methods in DECOMPRESS will have done this for you.

      C. BUILD

      Go into the newly-created directory and type:

      perl Makefile.PL

      dmake

      dmake test

      Depending on your perl configuration, dmake might not be available. You might have to substitute whatever perl -V:make says. (Usually, that will be nmake or make.)

      D. INSTALL

      While still in that directory, type:

      dmake install

      Hi, perl -V:make says that I shall use "nmake" but when i try to use nmake I get this error message: "C:\ehsthri\perl_modules\Number-Compare-0.01>nmake 'nmake' is not recognized as an internal or external command, operable program or batch file." What have I forgot now?

        You'll have to download it from MS. The link I found in Link to download NMAKE from M$ still works.


        Examine what is said, not who speaks.
        Silence betokens consent.
        Love the truth but pardon error.
Re: Number::Compare on Windows?
by davido (Cardinal) on Feb 08, 2005 at 09:38 UTC

    I first typed "ppm search Number-Compare", and discovered the module is on ActiveState's PPM repository. Next I typed "ppm install Number-Compare", and met with success. If you're using ActivePerl from Active State, you probably ppm too.


    Dave

      Hi Dave, thanks for your response. Yes i am using Active State. I tried your solution but the problem is that I get this error message: Error: No valid repositories: Error: 500 Can't connect to ppm.ActiveState.com:80 (Bad hostname 'ppm.ActiveState.com') Error: 500 Can't connect to ppm.ActiveState.com:80 (Bad hostname 'ppm.ActiveState.com') Any ideas?
Re: Number::Compare on Windows?
by Anonymous Monk on Feb 08, 2005 at 11:44 UTC