Dependencies
Before installing tmux, ensure you have the required dependencies:libevent 2.x
Event notification library required for tmux operation.
Available at: https://github.com/libevent/libevent/releases/latest
ncurses
Terminal control library for managing screen output.
Available at: https://invisible-mirror.net/archives/ncurses/
To build tmux from source, you’ll also need: a C compiler (gcc or clang), make, pkg-config, and yacc (or bison).
Package Manager Installation
The easiest way to install tmux is through your system’s package manager.Building from Source (Release)
To build and install tmux from a release tarball:Download the release
Download the latest release tarball from the official repository:Replace
VERSION with the desired version number.Configure and build
Run the configure script and build tmux:The configure script will check for required dependencies and configure the build for your system.
Optional: Enable utempter support
Optional: Enable utempter support
tmux can use the utempter library to update utmp(5), if it is installed. This allows tmux to properly register terminal sessions.To enable this feature, run configure with the
--enable-utempter flag:Building from Git (Development)
To get and build the latest development version from version control:Platform-Specific Notes
Linux
Linux
On most Linux distributions, both libevent and ncurses are available through the package manager:Ubuntu/Debian:Fedora/RHEL:
macOS
macOS
On macOS, use Homebrew or MacPorts to install dependencies:Homebrew:MacPorts:Xcode Command Line Tools provide the C compiler and other build tools:
BSD Systems
BSD Systems
On FreeBSD, OpenBSD, and NetBSD, tmux is available in the base system or ports:FreeBSD:OpenBSD:
tmux is included in the base system on recent OpenBSD versions.
Solaris
Solaris
On Solaris 11 and later:For older versions, you may need to build from source after installing dependencies.
Verify Installation
After installation, verify that tmux is working correctly:Start tmux
Troubleshooting
configure: error: libevent not found
configure: error: libevent not found
Install libevent development files:Ubuntu/Debian:Fedora/RHEL:macOS:
configure: error: curses not found
configure: error: curses not found
Install ncurses development files:Ubuntu/Debian:Fedora/RHEL:macOS:
yacc: command not found
yacc: command not found
Install bison or yacc:Ubuntu/Debian:Fedora/RHEL:macOS:
Permission denied when installing
Permission denied when installing
Ensure you’re using sudo for the install step:Or install to a user directory:Then add
$HOME/.local/bin to your PATH.Next Steps
Quick Start Guide
Now that tmux is installed, learn how to use it with our quick start guide.