Skip Menu |

This queue is for tickets about the Math-GMP CPAN distribution.

Report information
The Basics
Id: 47017
Status: rejected
Priority: 0/
Queue: Math-GMP

People
Owner: Nobody in particular
Requestors: marc.girod [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.05
Fixed in: (no value)



Subject: Failure to install on Windows
I attempt to install Math::GMP on Windows Vista. I have built perl myself using Visual C++ Express. I downloaded gmp-dynamic-vc-4.1.2.zip from http://cs.nyu.edu/exact/core/gmp/, extracted and copied all the files to C:\Perl\lib\CORE. I ran perl Makefile.PL, skipping the test for $output->{EXTRALIBS}. I successfully ran the build, but failed in nmake test. I join my transcript. Can this be done? Note: I already installed this successfully on cygwin. I want a Windows install for other users. Thanks!
Subject: Math-GMP.win32
Download Math-GMP.win32
application/octet-stream 3.5k

Message body not shown because it is not plain text.

On Tue Jun 16 14:08:05 2009, mgirod wrote: Show quoted text
> I attempt to install Math::GMP on Windows Vista. > I have built perl myself using Visual C++ Express.
Sorry: perl is 5.10 Microsoft Visual Studio 2008, Version 9.0.30729.1 SP Vista is Enterprise version, 32 bit
On Tue Jun 16 14:08:05 2009, mgirod wrote: Show quoted text
> I downloaded gmp-dynamic-vc-4.1.2.zip from
The error is that the "The specified procedure could not be found" - and my initial thought was that this happens because your version of gmp (4.1.2, presumably) is too old, and doesn't include the function whose absence gives rise to the error. But, even so, that inadequacy should have been discovered at compile time, during the running of 'nmake' - in which case the build of Math::GMP would have aborted with "unresolved external symbols". So ... maybe it's just that there's *another* gmp.dll that's being loaded - one that doesn't have the "specified procedure". Could that be the case ? (Make sure that the directory that houses the gmp.dll that you built against is at the *beginning* of your path.) GMP is currently at 4.3.1, btw - and it would be better if you could update to that version. Cheers, Rob
On Sun Jun 21 21:00:02 2009, SISYPHUS wrote: Show quoted text
> So ... maybe it's just that there's *another* gmp.dll that's being > loaded - one that doesn't have the "specified procedure". Could that be > the case ? (Make sure that the directory that houses the gmp.dll that > you built against is at the *beginning* of your path.)
I had first put them under: C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib because this is what was in the LIB environment variable. But then, when it wasn't found, I looked at the makefile, and moved them to: C:\Perl\lib\CORE I cannot find any other copy... Show quoted text
> GMP is currently at 4.3.1, btw - and it would be better if you could > update to that version.
The problem is that I cannot find Windows binaries for this version, and there is no indication about how to build the sources for Windows... configure won't run in a Command prompt... I can of course run configure in my cygwin shell, and edit the resulting Makefile by hand... Thanks
This is not a bug in Math::GMP - and you'd be better off pursuing the matter on a general perl forum (eg perlmonks, perl-win32-users). If the dll that you've downloaded is ok, then it's not the dll that's being found. And if it's not ok, then that's the problem. There are ways to build gmp using Microsoft compilers, but I don't know what they are - on Windows I build gmp using the MinGW compiler in the MSYS shell (which is a shell that does understand './configure'). As an interim measure, you'll get good milage from the uwinnipeg ppm. Just download http://cpan.uwinnipeg.ca/PPMPackages/10xx/x86/Math- GMP.tar.gz , extract it to some location, and copy GMP.pm (it's in the blib/lib/Math/ folder) to your Perl/site/lib/Math folder, and copy GMP.dll (it's in the blib/arch/auto/Math/GMP/ folder) to your perl/site/lib/auto/Math/GMP/ folder. Just create any of those folders if they don't already exist in your perl installation. The uwinnipeg ppm is currently at version 2.04. If that's a problem, let me know and I'll make sure that 2.05 is available there very soon. (According to the Math-GMP-2.05 Changes file, the only advantage for you with 2.05 over 2.04 is that prob_prime is supported in 2.05.) Cheers, Rob
On Tue Jun 23 03:42:05 2009, SISYPHUS wrote: Show quoted text
> This is not a bug in Math::GMP
Thanks. Acknowledged. I mark the ticket as 'rejected'. Is it appropriate? Show quoted text
> on Windows I build gmp using the MinGW compiler in the > MSYS shell (which is a shell that does understand './configure').
I'll try that. Show quoted text
> As an interim measure, you'll get good milage from the uwinnipeg ppm.
I'll try that too, maybe first. Thanks for for your help! Marc