{{tag>tmux guide compile}} {{howhard>2}}
====== tmux ======

===== Goal =====
Compile tmux

==== Steps ====
=== Library Prerequisites ===
<sxh bash>
yum -y install libevent-devel ncurses-devel
</sxh>

==== EXPORTS used to set versions ====
You can change the values here to change compiled version.
<sxh>
TMUX_VERSION=2.9a
</sxh>


=== Fetch tmux ===
<sxh bash>
wget https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz
tar zxfv tmux-${TMUX_VERSION}.tar.gz
cd tmux-${TMUX_VERSION}
</sxh>

=== Build tmux ===
<sxh bash>./configure --prefix=/usr
make
</sxh>

=== Install tmux ===
<sxh bash>make install</sxh>