-
Notifications
You must be signed in to change notification settings - Fork 76
Error installing Cairo on M1 chip (gmp.h) #22
Comments
This seems to be an issue with the Cairo programming language on apple's M1 computers. I read on the Cairo discord that you were able to solve it. Leaving a few success stories taken from the Cairo discord server for anybody stumbling upon this very problem: 1. @guiltygyoza
2. @milancermak
3. @howardpen9
4. myself!None of the above worked for me :( |
To make mine more generic, try:
|
Edited! |
I would suggest pinning this issue @martriay |
Done |
@milancermak trick fixed it for me. |
I tried the @milancermak solution, but on my macOS Monterey (12.1) on M1,
|
Worked for me! Appreciate it. |
Option 1 worked for me, thank you! |
Got it to work using:
|
this works for me. thank you so much. but compiling doesnt work :( |
some kind soul posted this and it works for me https://th0rgal.medium.com/the-easiest-way-to-setup-a-cairo-dev-environment-8f2a63610d46 |
Thanks, I've been trying to figure this out for days. This time it happened |
I'm using M1 chip, this works for me, thanks! |
I am also using M1 Chip, the command below also works for me
|
Compiling works for me, but not execution. I'm getting the same error as this one here: AntonKueltz/fastecdsa#74 (comment) |
And me on Mac m1 pro chip |
Thx! This worked for me! I ran this command after completely removing python on machine (reinstalling python3.9). |
To fix this error: OSError: no library called "cairo-2" was found
no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': dlopen(libcairo.so.2, 0x0002): tried: 'libcairo.so.2' (no such file), '/usr/local/lib/libcairo.so.2' (no such file), '/usr/lib/libcairo.so.2' (no such file), '/Users/soma/Development/mkdocs-material-insiders/libcairo.so.2' (no such file), '/usr/local/lib/libcairo.so.2' (no such file), '/usr/lib/libcairo.so.2' (no such file)
cannot load library 'libcairo.2.dylib': dlopen(libcairo.2.dylib, 0x0002): tried: 'libcairo.2.dylib' (no such file), '/usr/local/lib/libcairo.2.dylib' (no such file), '/usr/lib/libcairo.2.dylib' (no such file), '/Users/soma/Development/mkdocs-material-insiders/libcairo.2.dylib' (no such file), '/usr/local/lib/libcairo.2.dylib' (no such file), '/usr/lib/libcairo.2.dylib' (no such file)
cannot load library 'libcairo-2.dll': dlopen(libcairo-2.dll, 0x0002): tried: 'libcairo-2.dll' (no such file), '/usr/local/lib/libcairo-2.dll' (no such file), '/usr/lib/libcairo-2.dll' (no such file), '/Users/soma/Development/mkdocs-material-insiders/libcairo-2.dll' (no such file), '/usr/local/lib/libcairo-2.dll' (no such file), '/usr/lib/libcairo-2.dll' (no such file) run this command: |
As you can see, when I try to compile the cairo file, it show with these error. I tried to search on Google but can't find with any ideas. I think it's out of my knowledge, anyone know how to solve this? Thank you.
The text was updated successfully, but these errors were encountered: