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
pkg-config --cflags --libs cairo
, the output is empty.
I guess I need to manually set the *CAIRO_CFLAGS/CAIRO_LIBS? *How to?
Thanks!