v2ex / remote

Remote Worker
https://www.v2ex.com/go/dev
MIT License
81 stars 4 forks source link

OSError: no library called "cairo-2" was found #34

Open livid opened 2 years ago

livid commented 2 years ago

cairo is the dependency for SVG support. However, when I installed it on macOS via brew, its Python library had difficulty finding it:

Screen Shot 2021-12-17 at 10 43 07 AM

Probably due to SIP or some other reason I currently do now know, modifying DYLD or LD environment variables cannot do the trick. Now I had to link the dylib from opt to usr/local:

sudo ln -s /opt/homebrew/lib/libcairo.2.dylib /usr/local/lib/

I wonder if there is a better way to handle this on macOS 12.

luxiaba commented 2 years ago

Same issue before. Same solution as yours. Same doubts now.😅

It seems that it's issue aboue ctypes.