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

Hi, I would like to install Math::GMP in Windows system (XP or server). When i was trying this in cpan, it was failing becaz, GMP library is not installed. Please help me where can i download GMP library or build procedure to create GMP library for windows. I need this perl module, to run script which is using Net::SSH::Perl module. Appreciate you help. Thanks, Thiru

Replies are listed 'Best First'.
Re: How to Install Math::GMP in Windows
by BrowserUk (Patriarch) on Feb 19, 2010 at 22:34 UTC

    If you're using 5.8.x, it is available via PPM from the Active State repository:

    c:\test>ppm-shell ppm 4.05 (ActivePerl 826) Copyright (C) 2009 ActiveState Software Inc. All rights reserved. ppm> search Math::GMP 1: Math-GMP High speed arbitrary size integer math Version: 2.04 Author: Chip Turner Provide: Math::GMP version 2.04 Repo: uwinnipeg CPAN: http://search.cpan.org/dist/Math-GMP-2.04/

    The same may be true for 5.10 32-bit (but not for 64-bit:().


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Hi, I checked the PPM repository. Math::GMP is not installed. I checked in both versions of active perl 5.8.9 and 5.10.1
      ppm> search Math::GMP Downloading ActiveState Package Repository packlist...done Updating ActiveState Package Repository database...done *** no packages matching 'Math::GMP' found ***
        It's available from the Uwinnipeg repo. It's also available from the Bribes repo, though I think that version was built against a generic C build of GMP. The uwinnipeg version was built against a GMP library built using many of the assembler routines, and should therefore run a little faster.

        Uwinnipeg provides version 2.04, whereas Bribes offers the latest 2.06 (built against gmp-4.3.1). I'll update the uwinnipeg repo version to 2.06 today (built against the latest gmp-5.0.1).

        Cheers,
        Rob

        UPDATE: Math-GMP-2.06 (built against gmp-5.0.1) now uploaded to 5.8 and 5.10 Uwinnipeg repos. (Until randyk updates the webpages, they will show the version as 2.04, but you'll actually get 2.06 if you 'ppm install'.)