Last active
April 22, 2022 17:14
-
-
Save tknhs/53e03802f519c129e2c8a45c4b27e30f to your computer and use it in GitHub Desktop.
for Amazon Linux 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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