Results 1 to 3 of 3

Thread: could not install Cairo in R, error: Cannot find fontconfig/freetype2. but cairo-dev installed

  1. #1

    Default could not install Cairo in R, error: Cannot find fontconfig/freetype2. but cairo-dev installed

    I tried to install packages "Cairo" in R without success (opensuse 42.1).
    The error messages:

    checking whether FreeType needs additional flags... yes
    checking whether pkg-config knows about fontconfig or freetype2... no
    checking whether fontconfig/freetype2 location can be guessed... no
    configure: error: Cannot find fontconfig/freetype2 although cairo claims to support it. Please check your cairo installation and/or update cairo if necessary or set CAIRO_CFLAGS/CAIRO_LIBS accordingly.

    However, Cairo-devel, fontconfig are installed.

    When I run the
    Code:
    pkg-config --cflags --libs cairo
    , the output is empty.

    I guess I need to manually set the CAIRO_CFLAGS/CAIRO_LIBS? How to?

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,341
    Blog Entries
    15

    Default Re: could not install Cairo in R, error: Cannot find fontconfig/freetype2. but cairo-dev installed

    Hi
    Whenever it spits an error like that it's always the devel file you need to install, since it's using pkg-config then it needs the pc file which is only in the devel package (freetype-devel or freetype2-devel, probably the later is better).
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: could not install Cairo in R, error: Cannot find fontconfig/freetype2. but cairo-dev installed

    Problems solved:
    I have installed brew in my system, so there are two pkg-config, and brew's one comes first.
    Then set the PKG_CONFIG_PATH to contain the system search path.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •