Alexander / Aebian

Alexander / Aebian

Who am I?

Musician, Programmer, Linux Geek and what not.  more...


The Categories



Stuff

Arma CodeList
Legal Things
Media Creations
My Projects
My Hardware
My Wishlist
Some Spotify


October 13th at 4:39pm
Report a website issue
Sidebar ➠

❬ Back to Blog


Install tmux on RHEL


This post will cover how you can install tmux on RHEL without a subscription

by

Hi *,

By default tmux is not available on RHEL (Red Hat Enterprise Linux) and also not on the cdrom.
This post will show you can get tmux without the need of a Red Hat subscription.
Thats usefull when testing stuff with a lot of VMs for example.

1.) Locate a RHEL CD or if you are using a VMware vCloud like I do then just insert dvd from catalog.

2.) Mount the CDROM. Easiest way to do this:

sudo mkdir /mnt/cdrom/
sudo mount /dev/sr0 /mnt/cdrom

3.) Install the required dependencies for tmux:

sudo yum install gcc kernel-devel make ncurses-devel libevent

4.) Get the latest libevent release gzip (.gz) from https://github.com/libevent/libevent/releases/

tar -xvf libevent-X.X.X-stable.tar.gz

cd libevent-X.X.X-stable/
./configure --prefix=/usr/local

make
sudo make install

5.) Get the latest tmux release gzip (.gz) from https://github.com/tmux/tmux/releases/ and download it via wget in a folder of your choice.

6.) When thats done we need to unpack it and move to the folder:

tar -xvf tmux-X.X.tar.gz
cd tmux-X.X

7.) Set the correct linker flags for our installation and install tmux:

sudo LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make
sudo make install

After the installation restart your terminal to flush the tmux executable. Then you can check your tmux version with
tmux -V

To find out where your executable is try:
which tmux

Regards,

A/