python3-pycrypto-windows-installer icon indicating copy to clipboard operation
python3-pycrypto-windows-installer copied to clipboard

How to

Open boenrobot opened this issue 10 years ago • 3 comments

Hi. While trying to compile Pycrypto myself, and encountering the infamous "GMP or MPIR library not found" error, I found this StackExchange question that linked to your binaries.

It worked for me, thanks.

But... How? How did you manage to compile these on Windows? Or did you somehow compile them on Linux, but for Windows somehow?

boenrobot avatar May 01 '15 17:05 boenrobot

This is what I used: https://docs.python.org/3.4/distutils/builtdist.html It requires Visaul Studio 2008 (or 2010?) IIRC.

axper avatar May 01 '15 18:05 axper

I know that's the command, but it fails when dependencies are not satisfied...

I mean, having just Python 3.4 gives an error about VC++ 10.0 missing, which is really Visual Studio 2010. Installing Visual Studio 2010 (Express), I instead get the "GMP or MPIR library not found" error. So... How did you solved THAT part? I'm guessing you somehow made Visual Studio "find" GMP or MPIR, but which one of the two really? How did you make VS find it, and compile it in a compatible way?

boenrobot avatar May 01 '15 18:05 boenrobot

Uh.. this was really long time ago, I don't remember what I did exactly. If I find some time tomorrow I will load up my windows vm and try to re-resolve this issue.

axper avatar May 01 '15 18:05 axper