Skip to content

Instantly share code, notes, and snippets.

@niun
Forked from t-cyrill/build-tmux.sh
Last active June 27, 2024 14:08
Show Gist options
  • Save niun/9804349 to your computer and use it in GitHub Desktop.
Save niun/9804349 to your computer and use it in GitHub Desktop.
build tmux 1.9a on debian (tested with raspbian wheezy on a raspberry pi)
#!/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-1.9/tmux-1.9a.tar.gz"
tar xvfz tmux-1.9a.tar.gz
cd tmux-1.9a/
./configure && make
sudo make install
@oitos
Copy link

oitos commented May 10, 2015

Thanks a lot for the script!
Two notes:

  • I tracked down the packages myself as they were not gettable on those links anymore.
  • I was scratching my head for a while about an event.h compile error, but it turned out to be a conflict between the already installed libevent I had on Debian 6 and the one installed by this script.
    Simply purging all libevent related installs solved this.
    // Do note, however, that this also uninstalls the NFS sharing services (I do not understand why), so you might have to reconfigure that if you are using it.

Thanks again, my byobu+tmux combo wasn't working very well on an aging Debian system, and now it is just perfect! =)

@anttiviljami
Copy link

libncurses-dev doesn't seem to be available for wheezy anymore :(

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