-
Notifications
You must be signed in to change notification settings - Fork 78
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
Cannot install in macOS BigSur (M1 chip) #74
Comments
This worked for me:
|
@martriay did the above work for you? If you have installed gmp via brew you should be able to point the compiler to the correct headers and libs via CFLAGS and LDFLAGs. You can use |
@AntonKueltz no, but I compiled a list of solutions to my specific problem: |
Hi @martriay, I think this should work. I just tested it on my M1 mac. |
Even with
I'm honestly a bit tired of trying. I have it running on a dockerized ubuntu, it's not perfect but at least I'm not wasting more time with this. |
Sorry to hear that this is still broken for you on the M1 chips. I have no way to repro so I'm afraid I can't help much here. The only thing I can think of is that GMP appears to be installing for the ARM architecture ( |
@AntonKueltz thanks for trying! I have a good-enough solution at the moment (spinning up a docker), so I'm good. Let's hope for this to work in the future. |
Hi @martriay, Ahh, I think I fixed that for another library. So the fix for that gmp issue is,
Hope that helps! |
I would go ahead and alias Sorry for the delay as well, I don't really use github too much as I no longer use it for work. |
Thanks. I did a bit of everything proposed here by using arm64, compiler flags, etc:
And although installation succeeded, execution fails:
|
Can you try without the CFLAGS and LDFLAGS? That and if that fails try reinstalling gmp and it's dependents. And trying without the flags. I think pip is smart enough to know how to compile these things if you install gmp with arm64 arch, and the flags may be overriding(also it looks like those flags are not necessarily where the gmp lib goes as for me it is:
) |
Yes, it fails without them. Tried uninstalling
I'm impressed with your perseverance. |
This also worked for me, thank you @milancermak! |
This also worked for me!! Thanks |
This worked Dude, thanks for that |
Can you add more details @Rohith-sreedharan? Might be helpful for those stumbling into this. |
hey guys,
|
This didn't work for me on an Intel chip. Instead I had to change the path of gmp to where it actually is (ie where homebrew installs it)
|
Correct, the thread was specific to M1 architecture Macs, which installs to a different path. I recommend using $ echo "$(brew --prefix)/lib"
/opt/homebrew/lib |
was able to make this work on M1, by
|
In case anyone gets a similar error on an Intel mac
Here is how I solved it -
|
For context, this was apart of my issue with installing bitcoinlib. I made sure the CFlag and LDFlag variables were set when install fastecdsa. However, when attempting to use fastecdsa, I get this error:
|
Do you have a minimal example you can share, e.g. |
I'm trying to install
fastecdsa
on macOS BigSur (M1 chip) by runningand even though I previously installed
gmp
:it cant find the lib, no matter what I do
Although the error changed when I created a symlink
and now I get:
I also tried:
CFLAGS
,LDFLAGS
and both via global env export (export CFLAGS=...
)xcode-select --install
brew uninstall gmp
andbrew install gmp
, evenbrew reinstall gmp
andbrew unlink gmp
I can't put my finger on it :(
The text was updated successfully, but these errors were encountered: