[pycrypto] problems with testing PyCrypto Module

Philip Anil-QBW348 anil.philip at motorolasolutions.com
Fri Jul 13 14:32:24 EDT 2012


D:\Cryptolibrary\pycrypto-2.6>python setup.py build
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

even after editing config.h to Case's thread:

/* Define to 1 if you have the declaration of `mpz_powm', and to 0 if you 
   don't. */ 
#define HAVE_DECL_MPZ_POWM 1 

/* Define to 1 if you have the declaration of `mpz_powm_sec', and to 0 if you 
   don't. */ 
#define HAVE_DECL_MPZ_POWM_SEC 0 

/* Define to 1 if you have the `gmp' library (-lgmp). */ 
#undef HAVE_LIBGMP 

/* Define to 1 if you have the `mpir' library (-lmpir). */ 
#define HAVE_LIBMPIR 1 

/* Define to 1 if you have the <stdint.h> header file. */ 
#define HAVE_STDINT_H 1

Anil

-----Original Message-----
From: pycrypto [mailto:pycrypto-bounces at lists.dlitz.net] On Behalf Of Philip Anil-QBW348
Sent: Thursday, July 12, 2012 11:15 AM
To: PyCrypto discussion list
Subject: Re: [pycrypto] problems with testing PyCrypto Module

With help from the mpir dev list, I built mpir.lib
Do you know where I should put it in pycrypto-2.6 ?
I ask because they are all python files so it is not clear where I should drop in a lib file.

-----Original Message-----
From: pycrypto-bounces at lists.dlitz.net [mailto:pycrypto-bounces at lists.dlitz.net] On Behalf Of Philip Anil-QBW348
Sent: Friday, June 29, 2012 10:20 AM
To: PyCrypto discussion list
Subject: Re: [pycrypto] problems with testing PyCrypto Module

Thank you for replying. I am wondering whether to build and install the C++ mpir lib http://www.exploringbinary.com/how-to-install-and-run-gmp-on-windows-using-mpir/
Will that fix the issue? But I am not sure which lib folder I should drop the static lib into, since they all contain python scripts only - not libs.


-----Original Message-----
From: pycrypto-bounces at lists.dlitz.net [mailto:pycrypto-bounces at lists.dlitz.net] On Behalf Of Sebastian Ramacher
Sent: Thursday, June 28, 2012 8:20 AM
To: pycrypto at lists.dlitz.net
Subject: Re: [pycrypto] problems with testing PyCrypto Module

On 28/06/12 15:17, Philip Anil-QBW348 wrote:
> But what about the errors - anyone have any suggestions?

That's a known issue: https://bugs.launchpad.net/pycrypto/+bug/1004781

Kind regards
_______________________________________________
pycrypto mailing list
pycrypto at lists.dlitz.net
http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto





_______________________________________________
pycrypto mailing list
pycrypto at lists.dlitz.net
http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto





_______________________________________________
pycrypto mailing list
pycrypto at lists.dlitz.net
http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto







More information about the pycrypto mailing list