title: How to check installed libevent version?
body: <p>I have two different versions of libevent on my Centos 6, libevent version 1.4 (system default) in <code>/usr/lib</code> and version 2.0.21 (built from scratch) in <code>/usr/local/lib</code> (I have come to this conclusion because of these files <code>libevent-1.4.so.2</code> and <code>libevent-2.0.so.5</code>). I need to check which is version is being used because I am getting this error <code>java: event.c:715: event_add: Assertion !(ev-&gt;ev_flags &amp; ~(0xf000 | 0x9f))' failed</code> when I run a java application which is also dependent on some other libraries (which I am not aware of). So my initial assessment is that java or the dependent libraries calls libevent libraries. 
  So my question is how to check which libevent is being used by the system and java?  </p>