Linux, Ubuntu, R/Installation error

[Linux/Ubuntu/R-environment] R package Cairo install errors

hyunss 2024. 12. 2. 12:37

When you get error messages below.

configure: error: Cannot find cairo.h! Please install cairo (http://www.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly.

 

Try below command in your shell.

sudo apt-get install libcairo2-dev

 

And install the Cairo package in R

install.packages("Cairo", repo="https://RForge.net")
반응형