gmp icon indicating copy to clipboard operation
gmp copied to clipboard

gmp.h missing

Open townhill opened this issue 8 years ago • 4 comments

Hi

Can you include the gmp.h file? I'm getting the following error. gmp

townhill avatar Jun 09 '17 09:06 townhill

You need to make sure you have libgmp-dev installed and it should provide the gmp.h file.

Amazingly I seem to have missed that from the docs!

ncw avatar Jun 09 '17 15:06 ncw

Thanks! Sorted now :)

townhill avatar Jun 11 '17 13:06 townhill

how to do that in windows?

msh2050 avatar Jan 27 '22 19:01 msh2050

If anyone needs more help, I did the following on MacOS before successfully running go build:

  1. brew install gmp
  2. go get github.com/ncw/gmp
  3. CGO_CPPFLAGS="-I/opt/homebrew/include"
    • I got this path from find /usr /opt -name "gmp.h", but it's wherever gmp.h can be found or was installed.
  4. CGO_LDFLAGS="-L/opt/homebrew/lib"

preraku avatar Oct 16 '23 02:10 preraku