Installing Emacs 24 on Fedora 16

First of all, you have to download the latest version of emacs from http://alpha.gnu.org/gnu/emacs/pretest/. At the time of writing this is emacs-24.0.95.tar.gz

sudo yum groupinstall "Development Tools"
sudo yum install atk-devel cairo-devel freetype-devel \
fontconfig-devel dbus-devel giflib-devel glibc-devel gtk3-devel \
libpng-devel libjpeg-devel libtiff-devel libX11-devel libXau-devel \
libXdmcp-devel libXrender-devel libXt-devel libXpm-devel \
ncurses-devel xorg-x11-proto-devel zlib-devel librsvg2-devel \
m17n-lib-devel libotf-devel autoconf automake bzip2 cairo texinfo \
gzip GConf2-devel alsa-lib-devel desktop-file-utils python2-devel \
python3-devel ImageMagick-devel gnutls-devel util-linux
./configure --prefix=/usr/local/emacs24 --with-x-toolkit=gtk3

After running the command above you should see something like the following:

What operating system and machine description files should Emacs use?
`s/gnu-linux.h' and `m/amdx86-64.h'
What compiler should emacs be built with? gcc -std=gnu99 -g -O2
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should Emacs use a relocating allocator for buffers? no
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? x11
What toolkit should Emacs use? GTK
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? Standard dirs
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use a gif library? yes -lgif
Does Emacs use -lpng? yes
Does Emacs use -lrsvg-2? yes
Does Emacs use imagemagick? yes
Does Emacs use -lgpm? no
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? yes
Does Emacs use GSettings? yes
Does Emacs use -lselinux? no
Does Emacs use -lgnutls? yes
Does Emacs use -lxml2? yes
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? yes
Does Emacs use -lotf? yes
Does Emacs use -lxft? yes
Does Emacs use toolkit scroll bars? yes

If you are satisfied with the configuration the following command starts compiling emacs.

make

Test drive emacs:

./src/emacs

You can have multiple emacs installations. The following command makes emacs 24 the default.

sudo make install
sudo alternatives --install /usr/bin/emacs emacs /usr/local/emacs24/bin/emacs 20000

References

http://jonebird.com/2011/12/29/installing-emacs-v24-on-fedora/
http://batsov.com/articles/2011/08/19/a-peek-at-emacs24/

2 Gedanken zu „Installing Emacs 24 on Fedora 16“

  1. A slightly shorter step may be to use the command.

    # yum-builddep emacs

    Instead of the large list of yum commands. I think it should do about the same.

    1. You are right, it does about the same. The difference is that #yum-builddep emacs installs the gtk2-devel package and I wanted to compile emacs against gtk3. Therefore, it should be possible to shorten my command to

      #yum-builddep emacs
      #yum install gtk3-devel

      Thanks!

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Time limit is exhausted. Please reload the CAPTCHA.