Skip to content

Instantly share code, notes, and snippets.

@luoqeng
Forked from tnarihi/README.md
Created July 23, 2016 11:00
Show Gist options
  • Save luoqeng/8feb69666387af0c5abf16a9b058822e to your computer and use it in GitHub Desktop.
Save luoqeng/8feb69666387af0c5abf16a9b058822e to your computer and use it in GitHub Desktop.
Emacs 24.4 installation on Ubuntu 14.04 without sudo

Installing Emacs 24.4 on Ubuntu 14.04 without sudo privilege

Just run:

sh ./ubuntu14.04-emacs-24.4-install.sh

This will install ncurses which is dependency of emacs24.4. It may requires another dependencies depending on your environment. Note that configure options in emacs installation are for disabling GUI features.

#! /bin/sh
rm -rf build
mkdir -p build
cd build
# 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
make && make install
cd ..
# 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
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment