installation 24.2
Le
Stéphane Dutailly

Bonjour,
Je profite d'une ré-installation de mon système pour me mettre à jour.
Sous Ubuntu 12.04, j'essaie donc d'installer Emacs 24.2.
Je me suis rendu sur http://www.gnu.org/software/emacs/ puis j'ai
récupéré emacs-24.2.tar.gz, je l'ai décompressé puis je suis les
instructions d'installation.
Je me place dans mon dossier comme indiqué dans les instructions du
fichier INSTALL (section BASIC INSTALLATION)
cd /emacs-24.2
je lance
./configure
cela m'affiche alors:
checking for a BSD-compatible install /usr/bin/install -c
checking whether build environment is sane yes
checking for a thread-safe mkdir -p /bin/mkdir -p
checking for gawk no
checking for mawk mawk
checking whether make sets $(MAKE) yes
checking build system type x86_64-unknown-linux-gnu
checking host system type x86_64-unknown-linux-gnu
checking for gcc gcc
checking whether the C compiler works yes
.
checking for void * support yes
checking whether byte ordering is bigendian no
checking for __attribute__ ((__aligned__ (expr))) yes
checking whether make sets $(MAKE) (cached) yes
checking whether we are using GNU Make yes
checking whether gcc understands -MMD -MF yes
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.
Je suppose que le problème vient donc de librairies graphiques manquantes.
Un peu plus loin dans le fichier INSTALL, il est écrit:
> * Image support libraries
>
> Emacs needs optional libraries to be able to display images (with the
> exception of PBM and XBM images whose support is built-in).
>
> On some systems, particularly on GNU/Linux, these libraries may
> already be present or available as additional packages. Note that if
> there is a separate `dev' or `devel' package, for use at compilation
> time rather than run time, you will need that as well as the
> corresponding run time package; typically the dev package will
> contain header files and a library archive. Otherwise, you can
> download and build libraries from sources. None of them are vital for
> running Emacs; however, note that Emacs will not be able to use
> colored icons in the toolbar if XPM support is not compiled in.
>
> Here's the list of some of these optional libraries, and the URLs
> where they can be found (in the unlikely event that your distribution
> does not provide them):
>
> . libXaw3d http://directory.fsf.org/project/xaw3d/
> . libxpm for XPM: http://www.x.org/releases/current/src/lib/
> . libpng for PNG: http://www.libpng.org/
> . libz (for PNG): http://www.zlib.net/
> . libjpeg for JPEG: http://www.ijg.org/
> . libtiff for TIFF: http://www.libtiff.org/
> . libgif for GIF: http://sourceforge.net/projects/giflib/
>
> Emacs will configure itself to build with these libraries if the
> `configure' script finds them on your system, unless you supply the
> appropriate --without-LIB option. In some cases, older versions of
> these libraries won't work because some routines are missing, and
> configure should avoid such old versions. If that happens, use the
> --without-LIB options to `configure', if you need to.
Je suppose qu'il faut que j'installe tout cela mais je ne sais pas
comment faire.
Quelqu'un peut-il m'indiquer la marche à suivre et si je ne fais pas
fausse route?
Merci pour tout,
Stéphane
Je profite d'une ré-installation de mon système pour me mettre à jour.
Sous Ubuntu 12.04, j'essaie donc d'installer Emacs 24.2.
Je me suis rendu sur http://www.gnu.org/software/emacs/ puis j'ai
récupéré emacs-24.2.tar.gz, je l'ai décompressé puis je suis les
instructions d'installation.
Je me place dans mon dossier comme indiqué dans les instructions du
fichier INSTALL (section BASIC INSTALLATION)
cd /emacs-24.2
je lance
./configure
cela m'affiche alors:
checking for a BSD-compatible install /usr/bin/install -c
checking whether build environment is sane yes
checking for a thread-safe mkdir -p /bin/mkdir -p
checking for gawk no
checking for mawk mawk
checking whether make sets $(MAKE) yes
checking build system type x86_64-unknown-linux-gnu
checking host system type x86_64-unknown-linux-gnu
checking for gcc gcc
checking whether the C compiler works yes
.
checking for void * support yes
checking whether byte ordering is bigendian no
checking for __attribute__ ((__aligned__ (expr))) yes
checking whether make sets $(MAKE) (cached) yes
checking whether we are using GNU Make yes
checking whether gcc understands -MMD -MF yes
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.
Je suppose que le problème vient donc de librairies graphiques manquantes.
Un peu plus loin dans le fichier INSTALL, il est écrit:
> * Image support libraries
>
> Emacs needs optional libraries to be able to display images (with the
> exception of PBM and XBM images whose support is built-in).
>
> On some systems, particularly on GNU/Linux, these libraries may
> already be present or available as additional packages. Note that if
> there is a separate `dev' or `devel' package, for use at compilation
> time rather than run time, you will need that as well as the
> corresponding run time package; typically the dev package will
> contain header files and a library archive. Otherwise, you can
> download and build libraries from sources. None of them are vital for
> running Emacs; however, note that Emacs will not be able to use
> colored icons in the toolbar if XPM support is not compiled in.
>
> Here's the list of some of these optional libraries, and the URLs
> where they can be found (in the unlikely event that your distribution
> does not provide them):
>
> . libXaw3d http://directory.fsf.org/project/xaw3d/
> . libxpm for XPM: http://www.x.org/releases/current/src/lib/
> . libpng for PNG: http://www.libpng.org/
> . libz (for PNG): http://www.zlib.net/
> . libjpeg for JPEG: http://www.ijg.org/
> . libtiff for TIFF: http://www.libtiff.org/
> . libgif for GIF: http://sourceforge.net/projects/giflib/
>
> Emacs will configure itself to build with these libraries if the
> `configure' script finds them on your system, unless you supply the
> appropriate --without-LIB option. In some cases, older versions of
> these libraries won't work because some routines are missing, and
> configure should avoid such old versions. If that happens, use the
> --without-LIB options to `configure', if you need to.
Je suppose qu'il faut que j'installe tout cela mais je ne sais pas
comment faire.
Quelqu'un peut-il m'indiquer la marche à suivre et si je ne fais pas
fausse route?
Merci pour tout,
Stéphane
Tu peux soit installer toutes les bibliothèques de développement
requises à la main:
apt-get install libtiff-dev libgif-dev ...
soit demander à apt-get de les installer pour toi:
apt-get build-dep emacs
--
Daimrod/Greg
Merci beaucoup!
Stéphane