Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install TMUX on Amazon Linux (EC2)
wget https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz
tar zxf libevent-2.0.18-stable.tar.gz
cd libevent-2.0.18-stable
sudo ./configure
sudo ./make
DIR="/home/ec2-user/downloads/libevent-2.0.18-stable"
wget http://downloads.sourceforge.net/tmux/tmux-1.6.tar.gz
tar zxf tmux-1.6.tar.gz
cd tmux-1.6
sudo make clean
sudo ./configure CFLAGS="-I$DIR/include" LDFLAGS="-L$DIR/lib"
sudo make
sudo ./tmux -V
sudo make install
@bhuber
Copy link

bhuber commented Sep 4, 2012

I think line 5 is supposed to be 'sudo make'

@SeanDunford
Copy link

SeanDunford commented Aug 27, 2014

Agreed ^

@atoregozh
Copy link

atoregozh commented Dec 1, 2014

when I do "sudo make" I get "No targets specified and no makefile found. Stop.". is that what's supposed to happen?

@yashbajaj
Copy link

yashbajaj commented Sep 2, 2015

just do sudo yum install tmux ??

@sigma23
Copy link

sigma23 commented Jul 5, 2016

I think at this point "sudo yum install tmux" will do it!

@humblepie
Copy link

humblepie commented Feb 18, 2018

Unfortunately, latest tmux in amazon repo is 1.8

I got the version 2.6 RPM at this location - https://centos.pkgs.org/7/ius-x86_64/tmux2u-2.6-1.ius.centos7.x86_64.rpm.html

@snagargojesg
Copy link

snagargojesg commented Oct 16, 2020

sudo yum install tmux

This worked for me, thanks!

@ismet55555
Copy link

ismet55555 commented Apr 5, 2022

Thanks for the help!
I used it to make a install script that should work with Debian and CentOS based systems:

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