title: compile tor on centos6. Problems with libevent
body: <p>i have clean centos6 system, try to compile tor from sources.
  1st way (installing libevent by yum). I do:</p>
  
  <pre><code>yum install libevent2
  yum install libevent2-devel
  
  ...
  
  (inside tor folder): ./configure
  make
  </code></pre>
  
  <p>and get error:</p>
  
  <pre><code>src/common/libor-event.a(compat_libevent.o): In function `tor_gettimeofday_cache_clear':
  /root/tor-0.3.1.7/src/common/compat_libevent.c:250: undefined reference to `event_base_update_cache_time'
  collect2: ld returned 1 exit status
  make[1]: *** [src/or/tor] Error 1
  make[1]: Leaving directory `/root/tor-0.3.1.7'
  make: *** [all] Error 2
  </code></pre>
  
  <p>2nd way (installing libevent from sources).</p>
  
  <pre><code>yum remove libevent2
  yum remove libevent2-devel
  ..
  (from libevent folder): ./configure
  make
  make install
  ..
  (from tor folder): ./configure
  </code></pre>
  
  <p>and get error:</p>
  
  <pre><code>checking whether we need extra options to link libevent... configure: error: Found linkable libevent in (system), but it does not seem to run, even with -R. Maybe specify another using --with-libevent-dir}
  </code></pre>
  
  <p>So, what am i doing wrong?) what to do next?</p>