Skip to content

Instantly share code, notes, and snippets.

@nlevchuk
Forked from taqtiqa-mark/install.sh
Created February 11, 2013 10:26
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 nlevchuk/4753701 to your computer and use it in GitHub Desktop.
Save nlevchuk/4753701 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
export TMUX_INSTALL_VERSION=1.6
wget -q -O - "https://gist.github.com/raw/4561674/install_tmux_${TMUX_INSTALL_VERSION}_on_ubuntu_10.04.sh" | sudo bash
#!/bin/bash
#
# Install tmux 1.6 on Ubuntu 10.04
#
# Ref: http://bionicraptor.co/2011/07/23/how-to-compiling-tmux-1-5-for-ubuntu-10-04/
#
export TMUX_INSTALL_VERSION=1.6
export DOWNLOAD_URL="http://downloads.sourceforge.net/project/tmux/tmux/tmux-${TMUX_INSTALL_VERSION}/tmux-${TMUX_INSTALL_VERSION}.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftmux%2Ffiles%2Ftmux%2Ftmux-${TMUX_INSTALL_VERSION}%2Ftmux-${TMUX_INSTALL_VERSION}.tar.gz%2Fdownload&ts=1358477903"
sudo aptitude install build-essential debhelper diffstat dpkg-dev fakeroot g++ g++-4.4 html2text intltool-debian libmail-sendmail-perl libncurses5-dev libstdc++6-4.4-dev libsys-hostname-long-perl po-debconf quilt xz-utils libevent-1.4-2 libevent-core-1.4-2 libevent-extra-1.4-2 libevent-dev checkinstall
echo $DOWNLOAD_URL
wget $DOWNLOAD_URL -O tmux-$TMUX_INSTALL_VERSION.tar.gz
tar xvvf tmux-$TMUX_INSTALL_VERSION.tar.gz
cd tmux-$TMUX_INSTALL_VERSION/
./configure
make
sudo checkinstall
rm -f tmux-$TMUX_INSTALL_VERSION.tar.gz
sudo rm -rf tmux-$TMUX_INSTALL_VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment