LoginSignup
8
8

More than 5 years have passed since last update.

Ubuntu14.04にEmacs24.4を管理者権限(sudo)なしでインストールしたときのメモ

Last updated at Posted at 2015-03-20

あまり需要がないかもしれないが、ソースから普通にインストールしようとしたら、ncursesがないと怒られたので、メモしておく。GUI版を起動しない人向け。
元ネタはこちら
インストール先は$HOME/.localとし、ここにはPATHおよび、LD_LIBRARY_PATHは設定済みとする。

export PATH=$HOME/.local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH

ncurses 5.9のインストール

# Install ncurses
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
tar xvf ncurses-5.9.tar.gz
cd ncurses-5.9
./configure --prefix=$HOME/.local --without-install-prefix --with-termlib --enable-termcap --enable-getcap --enable-tcap-names --with-shared --with-widec
make && make install

必要か不明だがいろいろオプションをつけた。追記:Pythonのreadlineを使うときにwide-character対応が必要っぽかったので--enable-widecを追加。

Emacs 24.4のインストール

# install emacs
wget http://open-source-box.org/emacs/emacs-24.4.tar.xz
tar xvf emacs-24.4.tar.xz
cd emacs-24.4
./configure --prefix=$HOME/.local LDFLAGS=-L$HOME/.local/lib --without-pop --without-kerberos --without-mmdf --without-sound --without-wide-int --without-xpm --without-jpeg --without-tiff --without-gif --without-png --without-rsvg --without-xml2 --without-imagemagick --without-xft --without-libotf --without-m17n-flt --without-xaw3d --without-xim --without-ns --without-gpm --without-dbus --without-gconf --without-gsettings --without-selinux --without-gnutls --without-x
make && make install

configureのときにいろいろと--without-*オプションがついているのはGUIの機能を消すため。つけなくてもインストールできるかも。ここで、どうもこのconfigureはライブラリへのパスを見つけてくれないようで、LDFLAGS=-L$HOME/.local/libをなしでビルドしようとすると、またncursesがないと怒られてしまうので注意。

GistにShellスクリプトを置いておいた。

8
8
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
8
8