Created
April 26, 2023 15:31
-
-
Save Nebuchadrezzar/605ef6b6c29e15e7909371585b1f3459 to your computer and use it in GitHub Desktop.
Build Tmux 3.3a on 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
# Install tmux 3.3a on Amazon Linux 2 | |
# Install dependencies | |
sudo yum install -y gcc kernel-devel make ncurses-devel | |
# Download src dependencies for tmux and compile: | |
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz | |
tar -xf libevent-2.1.11-stable.tar.gz | |
cd libevent-2.1.11-stable | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
# Download tmux src and compile: | |
curl -LOk https://github.com/tmux/tmux/releases/download/3.3a/tmux-3.3a.tar.gz | |
tar -xf tmux-3.3a.tar.gz | |
cd tmux-3.3a | |
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local | |
make | |
sudo make install | |
# tmux kill-session | |
# close your terminal window (flushes cached tmux executable) | |
# open new shell and check tmux version | |
tmux -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment