Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jadia
Last active September 6, 2019 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadia/9b77385e4dccd3665a20aca6b138d2f6 to your computer and use it in GitHub Desktop.
Save jadia/9b77385e4dccd3665a20aca6b138d2f6 to your computer and use it in GitHub Desktop.
Install tmux latest version in CentOS 7

Install Tmux in CentOS 7

Remove tmux 1.8 and install

sudo yum remove tmux -y && \
git clone https://github.com/tmux/tmux.git && \
sudo yum install libevent-devel -y && \
sudo yum install ncurses-devel.x86_64 -y && \
cd tmux && \
sudo yum install -y automake gcc byacc && \
sh autogen.sh && \
./configure && make && \
sudo cp ./tmux /usr/bin/ && \
exec zsh

Error:

'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' returned 2

Solution:

Change sh to zsh (if you are using zsh)

NOTE: If you cannot install libevent and ncurses then add epel repo to your repo list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment