memcached: error while loading shared libraries: libevent-1.1.so.1:cannot open shared object file: No such file or directory

Garrett, Philip (MAN-Corporate) Philip.Garrett at manheim.com
Thu Jan 12 21:34:53 UTC 2006


> -----Original Message-----
> From: memcached-bounces at lists.danga.com
[mailto:memcached-bounces at lists.danga.com] On Behalf Of Kevin Watt
> Sent: Thursday, January 12, 2006 4:19 PM
> To: memcached at lists.danga.com
> Subject: memcached: error while loading shared libraries:
libevent-1.1.so.1:cannot open shared object file: No such file or
directory
> 
> Hi,
> 
> Memcached compiles fine, but when I try to run it, i get:
> [root at melody memcached-1.1.12]# memcached
> memcached: error while loading shared libraries: libevent-1.1.so.1:  
> cannot open shared object file: No such file or directory
> 
[snip]
> 
> Any help would be much appreciated.  I hate hitting these bonk-your- 
> head-against-computer-for-5-hour problems like this.


Try running memcached with LD_DEBUG set to "libs".  That should tell you
where it is looking for your libraries.

$ LD_DEBUG=libs memcached -v
      6741:     find library=libevent.so.0; searching
      6741:      search cache=/etc/ld.so.cache
      6741:       trying file=/usr/lib/libevent.so.0
      6741:
      6741:     find library=libc.so.6; searching
      6741:      search cache=/etc/ld.so.cache
      6741:       trying file=/lib/tls/libc.so.6
      6741:
      6741:
      6741:     calling init: /lib/tls/libc.so.6
      6741:
      6741:
      6741:     calling init: /usr/lib/libevent.so.0
      6741:
      6741:
      6741:     initialize program: memcached
      6741:
      6741:
      6741:     transferring control: memcached
      6741:



More information about the memcached mailing list