If you've installed Cairo via Homebrew (brew install cairo
) but your scripts still can't find it, you may need to create symlinks in /usr/local/lib
. This is because /usr/local/lib
is always searched by macOS and is not blocked by SIP (System Integrity Protection).
- Create the directory if it doesn't exist:
sudo mkdir -p /usr/local/lib