Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"libevent not found" error in tmux

Tags:

linux

tmux

I am trying to install tmux in my Scientific Linux release 6.5 (Carbon) machine

These are the steps I followed

wget http://downloads.sourceforge.net/tmux/tmux-1.9.tar.gz

tar xvzf tmux-1.9.tar.gz

cd tmux-1.9

./configure



At this step it's showing the error:

configure: error: "libevent not found" 



To solve it I did the following:

emacs /etc/yum.repos.d/pgdg-92-sl.repo



and added the following lines

[pgdg92]
name=PostgreSQL 9.2 $releasever - $basearch
baseurl=http://yum.postgresql.org/9.2/redhat/rhel-6.4-$basearch
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-92

[pgdg92-source]
name=PostgreSQL 9.2 $releasever - $basearch - Source
failovermethod=priority
baseurl=http://yum.postgresql.org/srpms/9.2/redhat/rhel-6.4-$basearch
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-92

Then did:

yum install libevent



It installed correctly


Still the error configure: error: "libevent not found" is not solved



Thanks in advance :)

like image 603
Anand Avatar asked Feb 21 '14 05:02

Anand


3 Answers

If you're trying to build software then you need the development package. Install libevent-devel.

On Debian/Ubuntu based distributions you can install it with

sudo apt install libevent-dev
like image 63
Ignacio Vazquez-Abrams Avatar answered Nov 15 '22 20:11

Ignacio Vazquez-Abrams


For CentOS,

sudo yum install libevent-devel
like image 34
subtleseeker Avatar answered Nov 15 '22 21:11

subtleseeker


For anyone who encounters this on mac you can install it via homebrew: http://macappstore.org/libevent/ => brew install libevent

like image 2
whodini9 Avatar answered Nov 15 '22 20:11

whodini9