Last active
June 5, 2021 15:25
-
-
Save favadi/18438172892bc4178b27 to your computer and use it in GitHub Desktop.
Compile latest emacs version (24.5) in Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Build latest version of Emacs, version management with stow | |
# OS: Ubuntu 14.04 LTS | |
# version: 24.5 | |
# Toolkit: lucid | |
# Warning, use updated version of this script in: https://github.com/favadi/build-emacs | |
set -e | |
readonly version="24.5" | |
# install dependencies | |
sudo apt-get install -y stow build-essential libx11-dev xaw3dg-dev \ | |
libjpeg-dev libpng12-dev libgif-dev libtiff4-dev libncurses5-dev \ | |
libxft-dev librsvg2-dev libmagickcore-dev libmagick++-dev \ | |
libxml2-dev libgpm-dev libghc-gconf-dev libotf-dev libm17n-dev \ | |
libgnutls-dev | |
# download source package | |
if [[ ! -d emacs-"$version" ]]; then | |
wget http://ftp.gnu.org/gnu/emacs/emacs-"$version".tar.xz | |
tar xvf emacs-"$version".tar.xz | |
fi | |
# buil and install | |
sudo mkdir /usr/local/stow | |
cd emacs-"$version" | |
./configure \ | |
--with-xft \ | |
--with-x-toolkit=lucid | |
make | |
sudo make install prefix=/usr/local/stow/emacs-"$version" | |
cd /usr/local/stow | |
sudo stow emacs-"$version" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EDIT:
Just saw the message at the top of the script pointing me to the github repo where the newest script resides! Forget the items below.
===
Hello. Thanks for the script.
On a fresh install of
Ubuntu 16.04.3 LTS
(withapt-get update
,apt-get upgrade
,apt-get autoremove
). First stop was your script. Thanks to your commentors, I changed the following to get things working:libghc-gconf-dev
as it does not appear to be a dependency in16.04.3
sudo mkdir -p /usr/local/stow
per @ozdigennaroI'm not adept enough at scripting to pose a change, but hope this helps others.