Emacs compilation in uubntu often encounters the following errors. Although you can specify -- without-X, it is better to compile the X interface into Emacs to prevent future use.
The error is as follows:
.................. Checking for X... nochecking for X... trueconfigure: Error: You seem to be running X, but no X development librarieswere found. you shoshould install the relevant development files for Xand for the Toolkit you want, such as GTK +, lesstif or motif. also makesure you have development files for image handling, I. e. tiff, GIF, JPEG, PNG and XPM. if you are sure you want Emacs compiled without X Window support, pass -- without-xto configure.
Solution:
Sudo apt-Get install libgtk2.0-devsudo apt-Get install libxpm-devsudo apt-Get install libjpeg62-devsudo apt-Get install libgif-devsudo apt-Get install libtiff4-devsudo apt-Get install libncurses5-dev. /configuremakemake install