chia-plotter
chia-plotter copied to clipboard
Mac M1 - ld: library not found for -lgmp
I have 2 different M1 Mac Minis I'm trying to compile on and both get the same error.
clang: warning: argument unused during compilation: '-fmax-errors=1' [-Wunused-command-line-argument] ld: library not found for -lgmp clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [chia_plot] Error 1 make[1]: *** [CMakeFiles/chia_plot.dir/all] Error 2 make: *** [all] Error 2
Same problem here on Mac intel
I no longer link to gmp...
Mac Intel here: Still the same error after your commit, sugestions ?
Mac intel here: Same error
I fix it. Go to /usr/local/include and delete gmp.h symlink and try restart all fases do compile the chia-plotter
working
for m1 /opt/homebrew/include thx! 🚀
Seems like brew unlink gmp
is more appropriate.
it works for me
export LIBRARY_PATH=/opt/homebrew/lib