LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-04-2012, 02:59 AM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Rep: Reputation: 50
Which one to use libevent vs. libev ?


I have been reading about what libevent and libev are & do.
http://www.ibm.com/developerworks/aix/library/au-libev/

My first ques. is whether libevent & libev are interchangable in slackware64current?

Do I have to use one or the other?

Rob warns in Slackbuilds that installing them both leads to header problems?
Can some clarify header problems? Thank you for any help.
 
Old 07-04-2012, 03:25 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,484

Rep: Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906
- no, they are not interchangable, some software needs one or the other, see the README of the app you want to build for which one of the two is needed;
- it depends on what software you need;
- the conflicting header installed by both packages is /usr/include/event.h (and they are not the same file).

The only software now in the slackbuilds.org's repository that needs libev is i3: I know maybe it's not the best solution, but to avoid problems and install safely both, as I use sometimes i3 and lighttpd2 that need it and also other programs that needs libevent, I personally moved that header file from libev into /usr/include/libev/event.h.
It creates no problem with i3 as it doesn't use that header (neither do lighttpd2), but can potentially create problems in the future with some other software depending on libev that include that: in this case, when building that app (but, I repeat, there are no cases that apply to the slackbuilds.org's repository now), I would simply add an additional CPPFLAGS="-I/usr/include/libev" to its build script to let it find the header in the new location.

Last edited by ponce; 07-04-2012 at 03:27 AM.
 
2 members found this post helpful.
Old 07-04-2012, 04:30 PM   #3
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Uprade to libevent-2.10

Hi Ponce (hope all is well for you @ home),
Thanks for clearing that up for me. Waiting for install that is TOR. When I saw libev looked @readme and wanted to know the options since it is said to be more stable + faster than libevent. Of course libev is minus built-in HTTP & DNS handlers thought I could use it instead.
Started proj. some time ago and forgot if I upgraded libevent to latest. Can you look at the following and let me know if i upgraded to libevent-2.10 already? Doesn't look like I did. Need to keep clearer notes!lol
Code:
:~/Desktop$ slocate libevent
/usr/lib64/libevent_core.la
/usr/lib64/libevent_extra-2.0.so.5
/usr/lib64/libevent_pthreads-2.0.so.5.0.1
/usr/lib64/libevent_extra.so
/usr/lib64/libevent_pthreads.la
/usr/lib64/libevent_openssl.so
/usr/lib64/libevent_pthreads.so
/usr/lib64/libevent_openssl-2.0.so.5.0.1
/usr/lib64/libevent-2.0.so.5
/usr/lib64/libevent_openssl.la
/usr/lib64/libevent.la
/usr/lib64/pkgconfig/libevent_pthreads.pc
/usr/lib64/pkgconfig/libevent.pc
/usr/lib64/pkgconfig/libevent_openssl.pc
/usr/lib64/libevent_pthreads-2.0.so.5
/usr/lib64/libevent_core-2.0.so.5
/usr/lib64/libevent_core-2.0.so.5.0.1
/usr/lib64/libevent_core.so
/usr/lib64/libevent-2.0.so.5.0.1
/usr/lib64/libevent.so
/usr/lib64/libevent_extra.la
/usr/lib64/libevent_openssl-2.0.so.5
/usr/lib64/libevent_extra-2.0.so.5.0.1
/usr/doc/libevent-2.0.10
/usr/doc/libevent-2.0.10/ChangeLog
/usr/doc/libevent-2.0.10/libevent.SlackBuild
/usr/doc/libevent-2.0.10/README
/usr/local/packages/libevent-2.0.10-x86_64-1_SBo.tgz
/var/log/packages/libevent-2.0.10-x86_64-1_SBo
/var/log/scripts/libevent-2.0.10-x86_64-1_SBo
 
Old 07-04-2012, 04:38 PM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,484

Rep: Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906
Quote:
Originally Posted by NightSky View Post
Can you look at the following and let me know if i upgraded to libevent-2.10 already? Doesn't look like I did.
...
Code:
...
/var/log/packages/libevent-2.0.10-x86_64-1_SBo
...
it looks to me you did.
 
1 members found this post helpful.
Old 07-04-2012, 07:30 PM   #5
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
lol..thanks Thought that line meant I had the package but not installed it.. Molte Grazie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memcached Libevent erros ptorres114 Linux - Newbie 1 12-30-2010 10:28 AM
Manually installing libevent? TommyMcCole Linux - Software 7 11-07-2010 12:16 AM
How do you install Libevent? kered101 Linux - General 2 04-11-2006 04:19 PM
How do you install Libevent? kered101 Linux - Software 1 04-11-2006 02:22 PM
getting libevent working alphisb0t Linux - Software 1 05-06-2005 09:21 PM


All times are GMT -5. The time now is 04:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration