error: --with-x=yes (default) and X11 headers/libs are not available


#1

Description:
Compilation of GNU-R
Operating System:
Ubuntu 12.04.1 LTS
Error:
error: --with-x=yes (default) and X11 headers/libs are not available
Solution:

$ sudo apt-get install xorg-dev

#2

#3