Skip to content

Instantly share code, notes, and snippets.

@joshgav
Created May 28, 2019 16:14
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 joshgav/9002805f52f66db85deae58b070d4b65 to your computer and use it in GitHub Desktop.
Save joshgav/9002805f52f66db85deae58b070d4b65 to your computer and use it in GitHub Desktop.
mac app installers
# install tmux
TMUX_VER=2.9a
LIBEVENT_VER=2.1.10
PREFIX=${HOME}/.local
# get tmux and libevent
curl -LO https://github.com/tmux/tmux/releases/download/${TMUX_VER}/${TMUX_VER}.tar.gz
curl -LO https://github.com/libevent/libevent/releases/download/release-${LIBEVENT_VER}-stable/libevent-${LIBEVENT_VER}-stable.tar.gz
tar -xzf "./tmux-${TMUX_VER}.tar.gz"
tar -xzf "./libevent-${LIBEVENT_VER}-stable.tar.gz"
# compile and install libevent
cd libevent-${LIBEVENT_VER}-stable
./configure --prefix=${PREFIX}
make
make install
# compile and install tmux
cd "../tmux-${TMUX_VER}"
LDFLAGS="-L${PREFIX}/lib" CPPFLAGS="-I${PREFIX}/include" LIBS="-lresolv" ./configure --prefix=${PREFIX}
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment