¿Qué bibliotecas necesito instalar si quiero compilar Emacs?


21

Estoy tratando de compilar emacsen Ubuntu 12.04. Esto es porque quiero usar Emacs 24.2.

Sin embargo, recibo el siguiente error. ¿Cómo puedo arreglarlo?

checking for long file names... yes
checking for X... no
checking for X... true
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.

Respuestas:


23

Solía ​​hacerlo de esta manera:

sudo apt-get install build-essential texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk-3-dev libncurses-dev libgnutls28-dev
# for gtk2 build replace libgtk-3-dev with libgtk2.0-dev

git clone --depth=1 git://git.savannah.gnu.org/emacs.git
cd emacs
./autogen.sh # not needed when installing from tarball
./configure
make bootstrap
sudo make install

Para construir documentos:

make docs
# or build just the format you want:
make info
make dvi
make html
make pdf

Pero ahora solo uso el paquete

sudo add-apt-repository -y ppa:ubuntu-elisp
sudo apt-get update
sudo apt-get install emacs-snapshot

15

Si tu corres

sudo apt-get build-dep emacs23

que instala todo lo necesario para compilar el emacs23paquete. Es muy probable que también sea suficiente para compilar Emacs 24.2.


55
O, en Ubuntu 14:sudo apt-get build-dep emacs24
nnyby

2
Si está ejecutando> = 16.04 y obtiene E: You must put some 'source' URIs in your sources.list, vea esta pregunta
dinosaurio

muy útil, se puede adaptar para la instalación de emacs 26.1 en Ubuntu 18.04 o Linux Mint 19 "Tara":sudo apt-get build-dep emacs25
sebisnow
Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.