Month: November 2022

error: Cannot find cairo.h

Introduction When installing cairo package for R the following error might be thrown: configure: error: Cannot find cairo.h! Please install cairo (http://www.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly. The error is generated because cairo.h header file is missing. Follow the steps below to solve this issue on Ubuntu. Solution Installing libcairo2-dev package will solve the problem, because

fatal error: libpq-fe.h: No such file or directory

Introduction You might encounter the following error while trying to install some packages in RStudio IDE: fatal error: libpq-fe.h: No such file or directory I encountered that error while trying to install RPostgreSQL package and that resulted in the error below: ERROR: compilation failed for package ‘RPostgreSQL’ As it can be seen from the error