Skip to content

Instantly share code, notes, and snippets.

@kissge
Created December 3, 2017 13:24
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save kissge/e925a60437aacac5475673c70bc496e8 to your computer and use it in GitHub Desktop.
Save kissge/e925a60437aacac5475673c70bc496e8 to your computer and use it in GitHub Desktop.
Compile Emacs 26 on Ubuntu 16.04 on Windows Subsystem for Linux (WSL, aka Bash on Ubuntu on Windows)
mkdir emacs
cd emacs
git init
git remote add origin https://github.com/emacs-mirror/emacs.git
git fetch --depth 1 origin emacs-26
git reset --hard FETCH_HEAD
sudo apt install autoconf make gcc texinfo libgtk-3-dev libxpm-dev libjpeg-dev libgif-dev libtiff5-dev libgnutls-dev libncurses5-dev
./configure
make
sudo make install
@danilomo
Copy link

danilomo commented Jun 1, 2018

You seem to be running X, but no X development libraries
were found. You should install the relevant development files for X
and for the toolkit you want, such as Gtk+ or Motif. Also make
sure you have development files for image handling, i.e...

I issued those commands but still got this error. How to fix this?

@mbenecke
Copy link

mbenecke commented Dec 30, 2019

High,

i would suggest to change the script to:

cd /usr/src
sudo mkdir emacs
sudo chmod 777 emacs
cd emacs
wget https://ftp.gnu.org/gnu/emacs/emacs-26.3.tar.xz
tar -xf emacs-VERSION.tar.xz
sudo apt-get build-dep emacs25 emacs25-bin-common emacs25-common emacs25-el
cd emacs-26.3
./configure
make
src/emacs -Q      # to test if its operating correct
sudo make install
make distclean

This will catch all dependencies for the build of emacs25 and build a well working emacs26.3 to my WSL Ubuntu 18 LTS

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