Skip to content

Instantly share code, notes, and snippets.

@tnarihi
Last active January 7, 2022 05:16
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save tnarihi/6054dfa7b4ad2564819b to your computer and use it in GitHub Desktop.
Save tnarihi/6054dfa7b4ad2564819b 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 ..
@aptxx
Copy link

aptxx commented Sep 7, 2020

Thanks, it still works for me in Ubuntu 14.04.5 LTS

@aptxx
Copy link

aptxx commented Sep 7, 2020

hmm, emacs version 25.3 works

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