Software⏱️ 3 min read📅 2026-06-11

How to Fix: Attempting to install tmux on CentOS 6.x fails with error: ‘EVBUFFER_EOL_LF’ undeclared

Fix tmux installation error on CentOS 6.x with missing EVBUFFER_EOL_LF declaration.

Quick Answer: Install ncurses-devel and libevent-devel packages before compiling tmux.

The error 'EVBUFFER_EOL_LF' undeclared' is encountered when attempting to install tmux on CentOS 6.x. This issue affects users who are trying to compile and install tmux from source.

This error can be frustrating for developers as it prevents them from successfully installing the tmux package, which is necessary for terminal multiplexing. To resolve this issue, we will explore the root causes of the problem and provide two alternative methods to install tmux on CentOS 6.x.

🛑 Root Causes of the Error

  • The primary reason for this error is that the ncurses-devel package installed on the system does not contain the necessary headers required by tmux. The ncurses library has a specific versioning scheme, and the installed package may be missing some of the required headers.
  • An alternative reason could be that the libevent-devel package is also missing some of the required headers. However, this is less likely to be the case since the problem specifically mentions 'EVBUFFER_EOL_LF', which is a ncurses-related error.

🚀 How to Resolve This Issue

Compiling tmux from source with additional ncurses headers

  1. Step 1: Install the ncurses-devel package with the 'ncurses' option to ensure that all required headers are included:
  2. Step 2: yum install --install-requires=ncurses ncurses-devel.x86_64
  3. Step 3: This will install the complete set of ncurses headers, which should resolve the 'EVBUFFER_EOL_LF' undeclared error.

Installing tmux using a pre-compiled binary

  1. Step 1: Download the latest pre-compiled binary for CentOS 6.x from the official tmux repository:
  2. Step 2: wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz

✨ Wrapping Up

To successfully install tmux on CentOS 6.x, either compile it from source with additional ncurses headers or use a pre-compiled binary. By following one of these methods, users should be able to resolve the 'EVBUFFER_EOL_LF' undeclared error and complete the installation process.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions