The Ubuntu Software Center emacs version is 23, and the latest version 24.3 is released on the Internet. Many dependency problems are encountered during compilation and installation. The following are some of these problems: 1. run. the/configure command has the following error: configure: error: YouseemtoberunningX, butnoXdevelopmentlibrarieswerefound.
The Ubuntu Software Center emacs version is 23, and the latest version 24.3 is released on the Internet. Many dependency problems are encountered during compilation and installation. The following are some of these problems:
1. the following error occurs when executing the./configure command:
Configure: error: You seem to be running X, but no X development libraries
Were found. You shocould 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.
As prompted, the development library for X windows is missing. If you do not want to use Emacs in the graphic interface, you can use the -- without-x option for compilation (nonsense). You can only use configure to install GTK +.
Sudo apt-get install libgtk2.0-dev
2. Add the compilation option in configure./configure -- with-x-toolkit = gtk3. The preceding error is not prompted for this configuration, but the following error occurs:
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
The error message "libXpm libjpeg libgif/libungif libtiff" is missing.
Several image development libraries must also be installed
Sudo apt-get install libxpm-dev
Sudo apt-get install libjpeg62-dev
Sudo apt-get install libgif-dev
Sudo apt-get install libtiff4-dev
3. Use apt-get install to install the missing package and its development kit, and then continue./configure with the following error:
Configure: error: The required function 'puts' 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.
The system prompts that the required function 'puput' is missing and may be in libncurses-dev. Then try to install this package and then configure
4. Because it has been compiled before, run make clean & make distclean to clear it.
5. Then, through./configure, the terminal prompts as follows:
Configure: creating./config. status
Config. status: creating Makefile
Config. status: creating lib/Makefile
Config. status: creating lib-src/Makefile
Config. status: creating oldXMenu/Makefile
Config. status: creating doc/emacs/Makefile
Config. status: creating doc/misc/Makefile
Config. status: creating doc/lispintro/Makefile
Config. status: creating doc/lispref/Makefile
Config. status: creating src/Makefile
Config. status: creating lwlib/Makefile
Config. status: creating lisp/Makefile
Config. status: creating leim/Makefile
Config. status: creating src/config. h
Config. status: executing depfiles commands
Config. status: executing mkdirs commands
Config. status: executing epaths commands
Creating src/epaths. h
[-R "/home/wkd/src/emacs-24.2/src/config. in"] | (cd/home/wkd/src/emacs-24.2 & autoheader)
Config. status: executing gdbinit commands
6. sudo make and sudo make install are successfully installed.
The entire compilation process is mainly to carefully check the configure output to see which libraries are missing. As long as the missing libraries are installed, configure can be successful, which is the key.
Configure the newLISP Development Environment http://www.linuxidc.com/Linux/2013-01/78463.htm for Emacs
Teach you how to configure http://www.linuxidc.com/Linux/2012-10/72342.htm for Emacs theme
Ubuntu compilation and installation of Emacs23 http://www.linuxidc.com/Linux/2009-08/21348.htm
How to customize Emacs http://www.linuxidc.com/Linux/2012-10/72341.htm
In the GNU Emacs environment, how does one compile and run C/C ++ programs? Http://www.linuxidc.com/Linux/2012-08/68299.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-08/104975.htm