Skip to content

Instantly share code, notes, and snippets.

@edwelker
Last active December 20, 2015 00:19
Show Gist options
  • Save edwelker/6040921 to your computer and use it in GitHub Desktop.
Save edwelker/6040921 to your computer and use it in GitHub Desktop.
Install tmux from source on OSX
Get the "Command line tools for XCode" installer from Apple, install.
Download ncurses
curl -O http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
tar zxvf ncurses
./configure --prefix=/Users/<user>
make
make install
Download libevent
curl -O https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
./configure --prefix=/Users/<user>
make
make install
Download tmux from github
git clone git://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code
./autogen.sh
OR
Download src (no .autogen.sh)
http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.8/tmux-1.8.tar.gz
./configure CFLAGS="-I/Users/<user/include" LDFLAGS="-L/Users/<user>/lib" --prefix=/Users/<user>
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment