ExWeb3 / ex_keccak

Elixir library for computing Keccak SHA3-256 hashes using a NIF built tiny-keccak Rust crate.
Apache License 2.0
25 stars 20 forks source link

Cannot load ExKeccak on Mac M1 Pro #21

Closed grahac closed 2 years ago

grahac commented 2 years ago

I tried installing ex_keccak on a new Mac m1 but got an error when trying to install.

Specifically got a message that

/_build/dev/lib/ex_keccak/priv/native/libexkeccak.so,\' (mach-o file, but is an incompatible architecture (have \'x86_64\', need \'arm64e\'))

Anyone experience this before? Is there a way to get ExKeccak working on M1 Mac architectures?

Thanks!

grahac commented 2 years ago

For those keeping track at home, I had two versions of Rust on my computer (one that was copied from the old computer). Uninstalling rust and re-installing fixed this problem.

tzumby commented 2 years ago

Thanks for following up @grahac! I didn't get a chance to look at your issue but I'm glad you figured it out.