Skip to content

Instantly share code, notes, and snippets.

@paulgessinger
Last active March 6, 2020 13:15
Show Gist options
  • Save paulgessinger/73049c6eaf371b2ad5a284f25591033f to your computer and use it in GitHub Desktop.
Save paulgessinger/73049c6eaf371b2ad5a284f25591033f to your computer and use it in GitHub Desktop.
Setup
#!/bin/bash
wget https://github.com/git/git/archive/v2.21.0.tar.gz
tar xvf v2.21.0.tar.gz
pushd git-2.21.0/
make configure
./configure --prefix=$prefix
make -j$(nproc) install
popd
#!/bin/bash
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar xvf Python-3.7.3.tgz
pushd Python-3.7.3/
# for SSL, add: --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
./configure --prefix=$prefix --enable-optimizations
make -j$(nproc) install
popd
#!/bin/bash
curl -Lo libevent-2.1.8-stable.tar.gz https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar xf libevent-2.1.8-stable.tar.gz
pushd libevent-2.1.8-stable
./configure --prefix=$prefix
make -j$(nproc) install
popd
curl -Lo ncurses-6.0.tar.gz https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz
tar xf ncurses-6.0.tar.gz
pushd ncurses-6.0
./configure --prefix=$prefix # on lxplus: --enable-symlinks
make -j$(nproc) install
popd
curl -Lo tmux-3.0a.tar.gz https://github.com/tmux/tmux/releases/download/3.0a/tmux-3.0a.tar.gz
tar xf tmux-*.tar.gz
pushd tmux-*
./configure --prefix=$prefix CFLAGS="-I$prefix/include" LDFLAGS="-L$prefix/lib"
make -j$(nproc) install
popd
#!/bin/bash
wget https://github.com/vim/vim/archive/v8.1.1118.tar.gz
tar xvf v8.1.1118.tar.gz
pushd vim-8.1.1118
./configure --with-features=huge \
--enable-multibyte \
--enable-python3interp=yes \
--with-python3-config-dir=$prefix/lib/python3.7/config-3.7m-x86_64-linux-gnu \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=$prefix
# --enable-python3interp=dynamic seems to fix segfault from ulitsnips
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment