Skip to content

Instantly share code, notes, and snippets.

@jcarley
Forked from tknhs/install_tmux.sh
Created April 22, 2022 17:14
Show Gist options
  • Save jcarley/7906d4c470a0497b72f9e38756718fc0 to your computer and use it in GitHub Desktop.
Save jcarley/7906d4c470a0497b72f9e38756718fc0 to your computer and use it in GitHub Desktop.
for Amazon Linux 2
LIBEVENT_VERSION="2.1.12-stable"
TMUX_VERSION="3.2a"
sudo yum install -y gcc kernel-devel make ncurses-devel openssl-devel
curl -LOk https://github.com/libevent/libevent/releases/download/release-${LIBEVENT_VERSION}/libevent-${LIBEVENT_VERSION}.tar.gz
tar -xf libevent-${LIBEVENT_VERSION}.tar.gz
cd libevent-${LIBEVENT_VERSION}
./configure --prefix=/usr/local
make -j4
sudo make -j4 install
cd ../
curl -LOk https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz
tar -xf tmux-${TMUX_VERSION}.tar.gz
cd tmux-${TMUX_VERSION}
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make -j4
sudo make -j4 install
tmux -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment