tmux is one of the first packages I install on a server. It offers all the advantages of screen and adds in scripting, multiple panes, and other goodies.

However, sometimes you don’t have root access on a server and/or can’t upgrade tmux’s dependencies (libevent and ncurses. In these cases, you can install tmux locally. After many false starts, I was able to get it all working. Hopefully, the gist below will save someone the time and aggravation I went through. A special thanks to this forum post for getting me 90% of the way there.