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

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