Skip to content

Instantly share code, notes, and snippets.

@nzw0301
Forked from tnarihi/README.md
Last active December 14, 2017 10:55
Show Gist options
  • Save nzw0301/feaf6851e33ed22224f36cecdb123e15 to your computer and use it in GitHub Desktop.
Save nzw0301/feaf6851e33ed22224f36cecdb123e15 to your computer and use it in GitHub Desktop.
Emacs 24.5 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-6.0.tar.gz
tar xvf ncurses-6.0.tar.gz
cd ncurses-6.0
./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.5.tar.xz
tar xvf emacs-24.5.tar.xz
cd emacs-24.5
./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 ..
@becxer
Copy link

becxer commented Dec 14, 2017

I think libncurse-dev install is missing .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment