Skip to content

Instantly share code, notes, and snippets.

@niun
Forked from t-cyrill/build-tmux.sh
Last active October 23, 2015 14:02
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • 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
@niun
Copy link
Author

niun commented Apr 24, 2014

when having system time / file modification time related problems with configure script of tmux, do this:

sudo apt-get install ntpdate
sudo ntpdate -u ntp.ubuntu.com

@meermanr
Copy link

meermanr commented Jul 2, 2014

Worked a treat, just wanted to say thanks. :)

@azizLIGHT
Copy link

Thanks, this works on raspbian wheezy without modification. Just exit your old tmux sessions and launch the new tmux with 'tmux' and thats it

@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