installation and compilations error in RStudio server

Hello Dears,
I was installing Cairo on the Rstido server on Ubuntu 20.04 Linux distribution. My Machine is windows 10 and doesn't know why got the following errors following the code:

install.packages("Cairo")
xlib-backend.c:34:10: fatal error: X11/Intrinsic.h: No such file or directory
   34 | #include <X11/Intrinsic.h>      /*->    Xlib.h  Xutil.h Xresource.h .. */
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:172: xlib-backend.o] Error 1
ERROR: compilation failed for package ‘Cairo’
* removing ‘/home/ido/amare.wolide/R/x86_64-pc-linux-gnu-library/4.0/Cairo’
Warning in install.packages :
  installation of package ‘Cairo’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/Rtmp02kIFk/downloaded_packages’

Any help would be appreciated!
Thank you

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.