Debian7にEmacs24.3をソースからインストールする2013年11月06日 18:52

Windows7上のVMware PlayerにインストールしたDebian7で、Emacs24.3をビルドした時のメモです。

0. Debianのビルドツールがなければ、build-essentialをインストールする。
1. emacs-24.3.tar.gzをダウンロードして展開
2. cd emacs-24.3
3. ./
autoconf (need at least version 2.65)
automake (need at least version 1.11)

4. aptitudeでautoconfとautomakeをインストール

5. ./
You can now run `./configure'.

6. ./configure
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
to configure.

7. aptitudeで以下のパッケージをインストール
Xorg-dev libgtk2.0-dev libtiff4-dev libgif-dev libjpeg62-dev libpng12-dev libxpm-dev
バージョンに迷うよりも、例えば apt-get install libjpeg-dev の方が簡単だし楽かも知れない。

8. ./configure
configure: error: The required function `tputs' was not found in any library.
The following libraries were tried (in order):
libtinfo, 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.

9. libncurses5-devをaptitudeでインストール
10. ./configure
11. make distclean
12. ./configure
13. make bootstrap
Compiling language/thai-word.el

In toplevel form:
language/thai-word.el:10738:5:Error: Memory exhausted--use C-x s then exit and restart Emacs
less INSTALL して、以下の記述を発見しさらに黙考。
* intlfonts-VERSION.tar.gz

The intlfonts distribution contains X11 fonts in various encodings
that Emacs can use to display international characters. If you see a
non-ASCII character appear as a hollow box, that means you don't have
a font for it. You might find one in the intlfonts distribution. If
you do have a font for a non-ASCII character, but some characters
don't look right, or appear improperly aligned, a font from the
intlfonts distribution might look better.

The fonts in the intlfonts distribution are also used by the ps-print
package for printing international characters. The file
lisp/ps-mule.el defines the *.bdf font files required for printing
each character set.

The intlfonts distribution contains its own installation instructions,
in the intlfonts/README file.

* Image support libraries

14. aptitudeでfonts-inconsolataをインストール(ttf-inconsolataでも同じ)
15. make bootstrap

16. make install
インストール完了。/usr/local/bin/emacs を実行して、正常に起動することを確認。

The names of the packages that you need varies according to the
GNU/Linux distribution that you use, and the options that you want to
configure Emacs with. On Debian-based systems, you can install all the
packages needed to build the installed version of Emacs with a command
like `apt-get build-dep emacs23'. On Red Hat systems, the
corresponding command is `yum-builddep emacs'.
最初に、apt-get build-dep emacs23とやっていればもっと楽だった。



>cd emacs-24.3
>make clean
>make bootstrap
Compiling language/thai-word.el

In toplevel form:
language/thai-word.el:10738:5:Error: Memory exhausted--use C-x s then exit and restart Emacs



>cd lisp/language/
>emacs -Q -batch -f batch-byte-compile thai-word.el
>cd ../../



>emacs -Q -batch -f batch-byte-recompile-directory lisp/

>make install