Last active
February 18, 2025 14:31
-
-
Save LeeiFrankJaw/7d674c8c36e5f02c7f4b69c0017d075c to your computer and use it in GitHub Desktop.
Install Emacs on Ubuntu
This file contains hidden or 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
| # Install Emacs 25.3 on Ubuntu 16.04.3 LTS | |
| git clone -b master git://git.sv.gnu.org/emacs.git | |
| cd emacs/ | |
| git checkout emacs-25.3 | |
| sudo apt install --no-install-recommends texinfo | |
| sudo apt install libgtk-3-dev libxpm-dev libjpeg8-dev libgif-dev libtiff5-dev libtinfo-dev librsvg2-dev libmagickwand-dev libacl1-dev libgnutls-dev | |
| # Note: if you have installed Anaconda python distribution, it will | |
| # affect how linker find libjpeg8 dynamic library files. To resolve | |
| # this, simply remove Anaconda directory from PATH variable. | |
| # ./autogen.sh | |
| # ./configure | |
| make bootstrap | |
| # if you wish to use clang to compile, use the following instead | |
| # make CC=clang LDFLAGS='-fuse-ld=lld -rtlib=compiler-rt' bootstrap | |
| make check | |
| sudo make install |
This file contains hidden or 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
| # Install Emacs 29.4 on Ubuntu 22.04.5 LTS | |
| wget https://ftpmirror.gnu.org/emacs/emacs-29.4.tar.xz | |
| tar xf emacs-29.4.tar.xz | |
| cd emacs-29.4/ | |
| sudo apt install --no-install-recommends texinfo | |
| sudo apt install libgif-dev libgnutls28-dev librsvg2-dev libharfbuzz-dev libgtk-3-dev libgpm-dev libacl1-dev libm17n-dev libotf-dev libsystemd-dev liblcms2-dev libjansson-dev | |
| ./configure | |
| # Or if you want ImageMagick support | |
| # sudo apt install libmagickwand-dev | |
| # ./configure --with-imagemagick | |
| make | |
| # Manual check | |
| # src/emacs -Q | |
| make check | |
| sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Obvious I guess but unless you 'cd emacs' sometime after line 2 and before line 10 then the make bootstrap and make check will fail.