Rain

Compile emacs without sudo

Published May 31, 2017, 4:16 a.m. by caster

Download Emacs

wget http://mirrors.ustc.edu.cn/gnu/emacs/emacs-25.1.tar.xz
tar xvf emacs-25.1.tar.xz

Compile and install

./configure --prefix=~/emacs --bindir=~/bin --with-x-toolkit=no --with-xpm=no --with-gif=no

You can use your favour path instead of prefix and bindir path. I add --with-x-toolkit=no --with-xpm=no --with-gif=no because i use emacs in the server so i don't need them.

As you compile emacs without sudo, i guess that if some dependencies were not satisified, you can just download and compile it, or without it.

Export bin path

Write this to your .bashrc or .zshrc

export PATH=$PATH:~/bin/

Similar posts

There are no similar posts yet.