Emacs 24.4のUbuntu 14.04へのインストール

提供: j8takagi wiki
ナビゲーションに移動 検索に移動

Emacs 24.4をUbuntu 14.04へソースコードからインストールしたときのメモ

準備

依存パッケージのインストール

次のパッケージをインストール

  • librsvg2-dev
  • librsvg2-2
  • libgpm-dev
  • libdbus-1-dev
  • libgconf2-dev
  • libfreetype6-dev
  • libm17n-dev
  • libotf-dev
  • libxft-dev
  • xaw3dg
  • xaw3dg-dev
  • libxpm-dev
  • libpng12-0
  • libpng12-dev
  • zlib1g-dev
  • libjpeg62
  • libjpeg62-dev
  • libgif-dev
  • libncurses-dev
  • libgnutls-dev
  • libselinux1-dev
  • libtiff4-dev
  • libacl1-dev

次の2コマンドでインストール(libtiff4-devは、他と一緒にインストールできなかった)。

$ sudo apt-get install librsvg2-dev librsvg2-2 libgpm-dev libdbus-1-dev libgconf2-dev libfreetype6-dev libm17n-dev libotf-dev libxft-dev xaw3dg xaw3dg-dev libxpm-dev libpng12-0 libpng12-dev  zlib1g-dev libjpeg62 libjpeg62-dev libgif-dev libncurses-dev libgnutls-dev libselinux1-dev libacl1-dev
$ sudo apt-get install libtiff4-dev

ImageMagickのインストール

ImageMagick

ダウンロード

$ wget ftp://ftp.ring.gr.jp/pub/GNU/emacs/emacs-24.4.tar.xz*

ソースの検証

$ gpg --verify emacs-24.4.tar.xz.sig 
gpg: 2014年10月21日 03時58分21秒 JSTにRSA鍵ID A0B0F199で施された署名
gpg: “Glenn Morris <rgm@gnu.org>”からの正しい署名

展開

$ tar xvJf emacs-24.4.tar.xz

インストール

$ cd emacs-24.4
$ ./configure
(途中略)
Configured for `x86_64-unknown-linux-gnu'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -std=gnu99 -g3 -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?                          LUCID
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 yes
  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 a png library?                           yes -lpng12 -lz -lm
  Does Emacs use -lrsvg-2?                                yes
  Does Emacs use imagemagick?                             yes
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   yes
  Does Emacs use -ldbus?                                  yes
  Does Emacs use -lgconf?                                 yes
  Does Emacs use GSettings?                               yes
  Does Emacs use a file notification library?             yes -lgio (gfile)
  Does Emacs use access control lists?                    yes -lacl
  Does Emacs use -lselinux?                               yes
  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 directly use zlib?                           yes
  Does Emacs use toolkit scroll bars?                     yes
(以下略)
$ make
$ sudo make install