Cannot install in macOS BigSur (M1 chip)
See original GitHub issueI’m trying to install fastecdsa
on macOS BigSur (M1 chip) by running
(venv) $ pip3 install fastecdsa
and even though I previously installed gmp
:
$ brew install gmp
it cant find the lib, no matter what I do
src/curve.h:4:10: fatal error: 'gmp.h' file not found
#include "gmp.h"
Although the error changed when I created a symlink
ln -s /opt/homebrew/include/gmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
and now I get:
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/gcc' failed with exit code 1
I also tried:
- passing the path via env
CFLAGS
,LDFLAGS
and both via global env export (export CFLAGS=...
)
LDFLAGS=-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib pip3 install fastecdsa
CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include pip3 install fastecdsa
xcode-select --install
- endlessly
brew uninstall gmp
andbrew install gmp
, evenbrew reinstall gmp
andbrew unlink gmp
- installing rosetta2
- turning it off and on again
I can’t put my finger on it 😦
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >Fix macOS Big Sur Problems(Can't Install on Macintosh HD)
If macOS Big Sur cannot be installed on Macintosh HD, you can try installing it in Safe Mode. Follow these steps to boot...
Read more >Can't install macOS Ventura Problems Mac, M1 MacBook Fixed
Steps to Fix Cannot install macOS Ventura/Monterey: 2022 MacOS · Fix 1: Delete installer File and Re-download macOS · Apple System Status ·...
Read more >Cannot Install MacOS Big Sur - Mac Research
Cannot install MacOS Big Sur fix · Use the Power button on your Mac to Force Quit the computer. · When the computer...
Read more >What to do if your Ventura update is stuck - Macworld
So, if you've seen the warning: 'The macOS installation couldn't be ... on whether your Mac is powered by Intel or an M1...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This worked for me:
CFLAGS=-I/opt/homebrew/opt/gmp/include LDFLAGS=-L/opt/homebrew/opt/gmp/lib pip install fastecdsa
hey guys, i had this exact same problem on mac monterey m1 the way i solved it:
@martriay