Skip to content

Instantly share code, notes, and snippets.

@agirorn
Forked from toantran-ea/install_tmux.sh
Last active March 4, 2019 13:18
Show Gist options
  • Save agirorn/3ae056308b1ff8e918e5f9b6335389fd to your computer and use it in GitHub Desktop.
Save agirorn/3ae056308b1ff8e918e5f9b6335389fd to your computer and use it in GitHub Desktop.
Install tmux from source on Linux Mint 18.3
#!/usr/bin/env bash
# Install TMUX from source on Linux Mint 19
set -e
# Configure
VERSION=2.8
ROOT=~/code-open-source
FILE="tmux-${VERSION}.tar.gz"
DIR="tmux-${VERSION}"
URL="https://github.com/tmux/tmux/releases/download/${VERSION}/${FILE}"
# Install dependencies
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libevent-dev
sudo apt-get install libncurses-dev
# Remove previous
mkdir -p "${ROOT}"
cd "${ROOT}"
test -f "${DIR}" && rm -Rf "${DIR}"
test -f "${FILE}" && rm -f "${FILE}"
# Get tmux source
wget -O "${FILE}" "${URL}"
tar -zvxf "${FILE}";
cd ${DIR}
# Install
./configure
make
sudo make install
# test
tmux -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment