Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does anyone have a working GMP + MINGW installation?

I've spent days and days trying to install GMP library on my MINGW windows installation. I completed the installation process of both dozens of times, followed any single guide on the internet but I couldn't manage to get things working. So, I'm here desperate to ask someone to help me brute-force this problem: does anyone have a WORKING mingw (32 bit) installation with GMP succesfully built and working on it? Could someone zip it and send it to me somehow? Like uploading it on mediafire/megaupload and sharing the link? I know this is not very elegant, but I'm really desperate. I'd just need a working installation of GMP on MINGW, possibly compiling c++ sources so that I can use directly operator overloading, but C version would be ok as well.

Please someone help, I can't complete my work just because of this bloody library

Thank you again

Matteo

like image 270
Matteo Monti Avatar asked Aug 30 '11 22:08

Matteo Monti


1 Answers

To install GMP on mingw32 (with mingw reinstallation for updating, because mingw-get can't update):

Delete (move to another dir; archive or do other backup) your mingw32 installation.

Reinstall mingw32 from site (it will be newer).

Do a commands from msys:

 mingw-get install mingw32-gmp 
 mingw-get install mingw32-gmp-dev

Enjoy.

PS: if it doesn't works; do

 mingw-get install mingw32-gmp-dev 
 mingw-get install mingw32-libgmp

Find the downloaded files with *.lzma extension (they will be both in mingw subdirs and in Temporary Internet Files of IE browser)

Unpack them manually to main mingw dir.

like image 120
osgx Avatar answered Sep 30 '22 18:09

osgx