Skip to content

Installation on macOS (15.1/Catalina) (M1) fails with cairo not found. #387

@ChillarAnand

Description

@ChillarAnand

I have already installed the pre-requisites.

Screenshot 2024-11-11 at 10 18 36

But during install, it is failing to find "cairo".

      Compiler for C supports arguments -Wswitch-default: YES
      Compiler for C supports arguments -Wno-missing-field-initializers: YES
      Compiler for C supports arguments -Wno-unused-parameter: YES
      Compiler for C supports arguments -fno-strict-aliasing: YES
      Compiler for C supports arguments -fvisibility=hidden: YES
      Found pkg-config: YES (/opt/local/bin/pkg-config) 0.29.2
      Found CMake: /Users/chillaranand/homebrew/bin/cmake (3.30.3)
      Run-time dependency cairo found: NO (tried pkgconfig, framework and cmake)

      ../cairo/meson.build:31:12: ERROR: Dependency "cairo" not found, tried pkgconfig, framework and cmake

      A full log can be found at /private/var/folders/vb/3wyl_42s4x1_z_7swgpq9xr40000gq/T/pip-install-dr_abefi/pycairo_8e2c36b9f63e490084503233417555c7/.mesonpy-joompwi1/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions