Skip to content

Instantly share code, notes, and snippets.

@amfern
Last active March 28, 2022 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amfern/22547d168faa105d2fbdc701e9ee2f77 to your computer and use it in GitHub Desktop.
Save amfern/22547d168faa105d2fbdc701e9ee2f77 to your computer and use it in GitHub Desktop.
Emacs.git ubuntu install
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt install gcc-10 g++-10 libgccjit0 libgccjit-11-dev libjansson4 libjansson-dev libmagickwand-dev
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig
export CC=/usr/bin/gcc-10 CXX=/usr/bin/gcc-10
git clone git@github.com:emacs-mirror/emacs.git && cd emacs
./autogen.sh
./configure --prefix=/usr/local --with-gameuser=:games --with-sound=alsa --with-modules --without-libotf --without-m17n-flt --without-gconf --without-gsettings --with-native-compilation --with-xinput2 --with-pgtk --without-xaw3d --with-sound=no --without-gpm --without-compress-install --program-transform-name=s/\([ec]tags\)/\1.emacs/
make -j$(nproc)
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment