Michael Garrett wrote:
> checking pkg-config is at least version 0.9.0... yes
> checking for LIBEVENT... yes
> checking for library containing setupterm... no
> configure: error: "curses not found"
>
> [mgarrett@rh6-pbc2b6-06 tmux] rpm -qa | grep curses
> ncurses-libs-5.7-3.20090208.el6.x86_64
> ncurses-devel-5.7-3.20090208.el6.x86_64 <---Here it is
> ncurses-5.7-3.20090208.el6.x86_64
> ncurses-base-5.7-3.20090208.el6.x86_64
Forgive me for resurrecting such an old thread, but since there was
never an answer posted here and Google points at this thread when
researching this error I figured I'd followup and provide the answer I
found in case it helps anyone else in the future.
The fix was to install the "glibc-static" package.
It attempts to statically link ncurses, and ncurses has a dependency on
glibc. So in order to statically link ncurses you also have to
statically link glibc, which requires the static versions of the glibc
libraries, which RHEL and CentOS don't include by default.