Skip to content

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

@livid

Description

@livid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions