configure: error: You seem to be running X, but no X development libraries were found. You should install the relevant development files for X and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make sure 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-x to configure.
The following required libraries were not found: libXpm libjpeg libgif/libungif libtiff Maybe some development libraries/packages are missing? If you don"t want to link with them give --with-xpm=no --with-jpeg=no --with-gif=no --with-tiff=no as options to configure
configure: error: The required function `tputs" was not found in any library. These libraries were tried: libncurses, libterminfo, libtermcap, libcurses. Please try installing whichever of these libraries is most appropriate for your system, together with its header files. For example, a libncurses-dev(el) or similar package.