Are there any PPA?
If no, how to make it from sources? Which dev libs I'll need to do this?
12.04 AND UP:
sudo add-apt-repository ppa:pi-rho/dev sudo apt-get update sudo apt-get install tmux
As you possibly already realized,
tmux version 1.8 is too new. As of writing this answer, version 1.8 is only 19 hours old.
If you for some reason need a newest version, then you might download the code and build/install
tmux by yourself. Should not be a big deal, since
tmux has dependencies only on
ncurses packages, and both of these packages are present on most if not all of Linux distros. Just download the latest code, and type following via terminal:
$ sudo apt-get install libevent-dev libncurses-dev pkg-config $ autoreconf -fis $ ./configure $ make $ sudo make install
Here is the way I did it on Ubuntu 13.04 (Raring Ringtail) and 14.04 (Trusty Tahr):
sudo add-apt-repository ppa:pi-rho/dev (source)
sudo apt-get update (freshens the cache/database of packages)
sudo apt-cache show tmux (*optional, shows you available versions, 1.7 & 1.8 should be listed)
sudo apt-get install tmux
I have not found an "official" PPA for new tmux packages. However a PPA search on launchpad turns up quite a few options.
Many are out of date, but I found a ppa by pi-rho that has current tmux and tmux-next packages for 12.04, 12.10 and 13.04. (At the time of this answer they are at versions 1.8-1ubuntu1~ppa2 and 1.9~20130425~bzr3062+9-1ubuntu1~ppa0). There is no guarantee that that PPA will continue to be maintained up-to-date, but for now it seems like a fair option.
Be aware that it also has a number of other packages in it. If you add this PPA you will find the other packages also get upgraded unless you do some sort of apt pin config.
In order to run tmuxinator on Ubuntu Precise (12.04), I needed tmux v1.8+, which is available in Saucy now and therefore in the "backports" repository for Precise. Here's how I got it:
/etc/apt/sources.listto enable the "precise-backports" repositories (around line 45).
sudo apt-get update
sudo apt-get install -t precise-backports tmux. I couldn't get
apt-get install tmux/precise-backportsto work for me.
Note you'll have to kill all sessions and start with fresh ones, otherwise you'll get a server-client version mismatch error, and other users logged in on the same server may be running tmux, which will keep the server process alive until everyone exits. Look for zombies, too (
ps aux | grep tmux).
This PPA has it though,
The easiest way for me is to dpkg install the tmux 1.8 package built for Ubuntu 13.10 from the official PPA https://launchpad.net/ubuntu/+source/tmux, all its dependencies are met in Ubuntu 12.04.3
I used a similar approach to rox, but I used the build for Ubuntu 14.04 (Trusty Tahr) to get tmux 1.8 on my 12.04 system.
Then, I used dpkg to install it:
sudo dpkg -i tmux_1.8-5_amd64.deb
I did a clean restart of my system to make sure I didn't have any problems with server-client version mismatch, and so far everything is working fine.