-
-
Save agirorn/3ae056308b1ff8e918e5f9b6335389fd to your computer and use it in GitHub Desktop.
Install tmux from source on Linux Mint 18.3
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
#!/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