Skip to content

gmp not found on M1 macOS Monterey #25

@ppraisethesun

Description

@ppraisethesun

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions