Skip to content

Instantly share code, notes, and snippets.

@VladSem
Created May 23, 2015 05:43
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladSem/e706a7755873cccefa8d to your computer and use it in GitHub Desktop.
Save VladSem/e706a7755873cccefa8d to your computer and use it in GitHub Desktop.
install tmux 2.0 on Raspberry Pi (Debian 7.8) Raspbian Wheezy
#!/bin/bash
wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
tar -xf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
make verify
sudo make install
sudo ldconfig
cd ..
sudo apt-get install libncurses-dev
wget "http://downloads.sourceforge.net/project/tmux/tmux/tmux-2.0/tmux-2.0.tar.gz"
tar xvfz tmux-2.0.tar.gz
cd tmux-2.0/
./configure && make
sudo make install
@peteygao
Copy link

Manually downloading and building libevent is no longer necessary (I'm not sure if it ever was).

Simply install libevent-dev and libncurses5-dev from the package repo (as of 2015-09-28, libevent-dev is version 2.0.5):
sudo apt-get install libevent-dev libncurses5-dev
Then proceed with downloading & building the tmux source as your gist indicates.

I tested this on a Raspberry Pi B+ running Raspbian Wheezy (2015-05-05 release)

@mirskiy
Copy link

mirskiy commented May 6, 2016

Source moved to github, change the wget to
wget "https://github.com/tmux/tmux/archive/2.2.tar.gz"
Tested on 2016-03-18/2016-03-18-raspbian-jessie.zip

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