-
-
Save tkt028/d24e2da0d7826de16b23951a17de2b8a to your computer and use it in GitHub Desktop.
Compile emacs 24 on Red Hat 6 workstations
This file contains 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 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