1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Emacs25.2へのアップデート

Last updated at Posted at 2017-06-07

ubnut16.04でemacs24.5から25.2へアップデートした時のメモ。

まずはソースをダウンロードして解凍する。

wget http://ftp.jaist.ac.jp/pub/GNU/emacs/emacs-25.2.tar.gz
tar -zxvf emacs-25.2.tar.gz
cd emacs-25.2/

とりあえず普通に./configureを実行する

./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+ 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.

というエラーが出た。調べると以下の解決策がヒット。
http://royontechnology.blogspot.jp/2012/06/installing-emacs-241.html
これにしたがって必要なパッケージをインストールしてやり直す。

sudo apt install libgtk2.0-dev libtiff5-dev libgif-dev libpng12-dev libxpm-dev libncurses5-dev
./configure
~略~
configure: error: The following required libraries were not found:
     libpng
Maybe some development libraries/packages are missing?
If you don't want to link with them give
     --with-png=no
as options to configure

またエラーがでた。PATHにpythonのAnacondaのパスが設定されているとこのエラーが出るらしい。パスの設定をして再度挑戦。

export PATH="/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
./configure

これでうまくいった。あとは

make
sudo make install

で完了。

emacsを起動して

M-x emacs-version 

としてversionを確認してみる。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?