Skip to content

Instantly share code, notes, and snippets.

@marcwebbie
Last active August 4, 2017 06:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save marcwebbie/27f637653fe038c530e7 to your computer and use it in GitHub Desktop.
Save marcwebbie/27f637653fe038c530e7 to your computer and use it in GitHub Desktop.
Compile emacs 24 on Red Hat 6 workstations
# install needed libraries
sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
# compile autoconf
cd /tmp
wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
tar xjvf autoconf-2.68.tar.bz2
cd autoconf-2.68/
./configure && make && sudo make install
# compile emacs 24.3
cd /tmp
curl -L https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz | tar zx
cd emacs-emacs-24.3.91
./autogen.sh && ./configure --with-jpeg=no && make bootstrap && sudo make install
cd ..
# install cask for emacs config management
curl -fsSkL https://raw.github.com/cask/cask/master/go | python
# install config
cd ~
git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d
cd .emacs.d
~/.cask/bin/cask
##########################
# Other actions
##########################
# Add aliases on linux
#alias emacsdaemon="/usr/local/bin/emacs --daemon"
#alias ec='emacsclient -c -a "" $*'
# one liner compile from terminal
# https://gist.github.com/marcwebbie/27f637653fe038c530e7/raw/dac422c74ed0bdd8c846764c27aeb94ddc335732/compile_emacs.sh | sh
# one liner reinstall config
# cd ~ && sudo rm -rf .emacs.d && git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d && cd .emacs.d && ~/.cask/bin/cask
# puppet manifest example (http://superuser.com/questions/415047/install-a-source-package-with-puppet)
#netinstall { 'emacs-24.3':
# url => 'https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz',
# extracted_dir => 'emacs-24.3',
# destination_dir => '/tmp',
# postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no #--with-tiff=no && make && sudo make install'
#}
# Generate TAGS manually
#find . -regex ".*\(haml$\|rb$\|erb\)" | etags -
# compile emacs from git
#git clone git://git.savannah.gnu.org/emacs.git
#cd emacs
#./autogen.sh
#./configure --with-jpeg=no
#make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment