Error Libevent Is Required
Contents |
here for a quick overview of the site Help Center Detailed answers to any configure error libevent not found questions you might have Meta Discuss the workings and policies
Tmux Configure Error Libevent Not Found
of this site About Us Learn more about Stack Overflow the company Business Learn more about
Configure Error No Libevent Found
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack
Libevent Not Found Ubuntu
Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “libevent not found” error in tmux up vote 11 down vote favorite I am trying to install tmux in my Scientific Linux release 6.5 (Carbon) machine These are the configure: error: "curses not found" 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 :) linux tmux share|improve this question edited Feb 21 '14 at 5:53 Kabir Pradeep 1,26411122 asked Feb 21 '14 at 5:43 Anand 167313 add a comment| 1 Answer 1 active oldest votes up vote 33 down vote accepted If you're trying to build software then you need the development package. Install libevent-devel. For ubuntu based distributions the package is libevent-dev share|improve this answer edited Jan 30 '15 at 14:08 E
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://unix.stackexchange.com/questions/17907/why-cant-gcc-find-libevent-when-building-tmux-from-source site About Us Learn more about Stack Overflow the company Business Learn more https://rootedlabs.wordpress.com/2010/06/30/memcached-libevent-issues/ about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: not found Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Why can't gcc find libevent when building tmux from source? up vote 53 down vote favorite 27 I want to install tmux on a machine where I don't have root access. I already compiled libevent and installed it in $HOME/.bin-libevent and now I want to compile tmux, libevent not found but configure always ends with configure: error: "libevent not found", even though I tried to point to the libevent directory in the Makefile.am by modifying LDFLAGS and CPPFLAGS, but nothing seems to work. How can I tell the system to look in my home dir for the libevent? compiling make configure autoconf share|improve this question edited Aug 2 '11 at 20:48 Gilles 371k686741125 asked Aug 2 '11 at 16:04 volker 268144 add a comment| 7 Answers 7 active oldest votes up vote 52 down vote accepted Try: DIR="$HOME/.bin-libevent" ./configure CFLAGS="-I$DIR/include" LDFLAGS="-L$DIR/lib" (I'm sure there must be a better way to configure library paths with autoconf. Usually there is a --with-libevent=dir option. But here, it seems there is no such option.) share|improve this answer answered Aug 2 '11 at 18:09 Stéphane Gimenez 14.2k13867 4 This is the approach that made make finally work. I tried setting other environment variables and setting prefix and exec-prefix, but once I included these flags stuff actually got built. –wizonesolutions Jan 10 '13 at 16:34 How would I go about specifying multiple directories for the flags? I tried ./configure CFLAGS="-I$DIR/include:/usr/otherdir" LDFLAGS="-L$DIR/lib:/usr/otherdir" but no success –lucaswxp Aug 22 '15 at 19
from Source on CentOS 5 This is a quick summary for this process so that I can refer to it later on, and hopefully someone will find it useful as well. Memcached requires libevent to handle its network IO stuff. The bundled libevent in the standard yum repository is old so it’s pretty useless. The newer versions memcached runs on newer libevent library so I ended up compiling libevent and memcached from the latest stable sources. I’m using libevent-1.4.4-stable and memcached-1.2.5. First off, uninstall the libevent that yum may have installed on your machine # sudo yum remove libevent Download the sources for libevent and memcached , unzip( # gunzip *.gz ), untar (# tar -xvf *.tar), CD to the libevent folder. We will compile the libevent first. # ./configure –prefix=/usr/local # make # make install Basically we are telling libevent to install itself under /usr/local/lib/. When we compile memcached, we need to point it to the correct location as well. Once libevent is done installing (it’s really quick), we can move on and complie memcached. CD to the un-tar memcached folder, # ./configure –with-lib-event=/usr/local/ # make # make install After memcached is installed, you can try # memcached In my situation, I ran into an error error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory It turned out that the new libevent get installed, it doesn’t “register” the actual library file (similar to DLL on Windows) with the system. When Memcached runs, it tries to look for the libevent-1.4.so.2 file but since libevent is still playing hide and seek somewhere, memcached cries. To fix this, we need to manually load the libevent library file into the system via the ld configuration. From the man page of ld: ld combines a number of object and archive files, relocates their