Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmp not found on M1 macOS Monterey #25

Open
ppraisethesun opened this issue May 9, 2022 · 2 comments
Open

gmp not found on M1 macOS Monterey #25

ppraisethesun opened this issue May 9, 2022 · 2 comments

Comments

@ppraisethesun
Copy link

OS: 12.1
elixir: 1.13.2
erlang: 24.0.6

Getting this error when running mix deps.compile

c_src/secp256k1/src/num_gmp.h:10:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
         ^~~~~~~
1 error generated.
make: *** [priv/libsecp256k1_nif.so] Error 1
==> libsecp256k1
warning: Mix compiler :make_bindings was supposed to return {:ok | :noop | :error, [diagnostic]} but it returned :error

gmp is already installed according to brew:

Warning: gmp 6.2.1_1 is already installed and up-to-date.
To reinstall 6.2.1_1, run:
  brew reinstall gmp

I'm not sure how to approach this problem. Did anyone manage to compile this library on m1 macs?

@mc10sw
Copy link

mc10sw commented Jun 7, 2022

same issue on M1 mac

@mc10sw
Copy link

mc10sw commented Jun 7, 2022

@ppraisethesun i solved the issue.
use this package instead.

https://hex.pm/packages/libsecp256k1_diode_fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants