Created
January 28, 2025 19:28
-
-
Save yashkumaratri/40e50d2d73ca67324051d0a0598cf229 to your computer and use it in GitHub Desktop.
Installing Tmux without sudo on linux based environments
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
wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz | |
tar xvzf libevent-2.1.12-stable.tar.gz | |
cd libevent-2.1.12-stable.tar.gz | |
./configure --prefix=$HOME/local --disable-shared | |
make | |
make install | |
cd .. | |
wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.5.tar.gz | |
tar xvzf ncurses-6.5.tar.gz | |
cd ncurses-6.5 | |
./configure --prefix=$HOME/local | |
make | |
make install | |
cd .. | |
wget https://github.com/tmux/tmux/releases/download/3.5a/tmux-3.5a.tar.gz | |
tar xvzf tmux-3.5a.tar.gz | |
cd tmux-3.5a | |
./configure CFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" LDFLAGS="-L$HOME/local/lib -L$HOME/local/include/ncurses -L$HOME/local/include" | |
CPPFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" LDFLAGS="-static -L$HOME/local/include -L$HOME/local/include/ncurses -L$HOME/local/lib" | |
make | |
cp tmux $HOME/local/bin | |
cd .. | |
# To make an alias | |
#vim ~/.bashrc | |
#alias tmux="$HOME/local/bin/tmux" | |
#source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment