configure: error: No F77 compiler found
C++ preprocessor "/lib/cpp" fails sanity check
headers/libs are not available
the X11 development package(s) and not a library.
$ sudo apt-get install r-base-dev
will get all the required dependencies for R and most R packages, incl. X11
headers.