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

Kevin Watt inspire22 at gmail.com
Thu Jan 12 21:18:57 UTC 2006


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


I've tried the solutions to this that I could find online, to no avail:

 > The problem seems to be that memcache refuses to look in the  
correct place for libevent even when you supply the path to it.
 > To fix just link /usr/local/lib/libevent-1.1.so.1 to /lib/ 
libevent-1.1.so.1

I've tried linking it to /lib, /usr/lib, and /var/lib.  I've tried  
removing all libevent files and reinstalling with version 1.1  
(current is 1.1a).  None of this has helped.  I've 'make clean' and  
reconfigured and recompiled memcached in between each of these steps.


The pastes below show version 1.1 instead of 1.1a because I've tried  
that latest to see if it fixed the problem.

[root at melody memcached-1.1.12]# ll /usr/local/lib/libevent*
lrwxrwxrwx  1 root root     21 Jan 12 12:13 /usr/local/lib/ 
libevent-1.1.so.1 -> libevent-1.1.so.1.0.2
-rwxr-xr-x  1 root root 121211 Jan 12 12:13 /usr/local/lib/ 
libevent-1.1.so.1.0.2
-rw-r--r--  1 root root 195380 Jan 12 12:13 /usr/local/lib/libevent.a
-rwxr-xr-x  1 root root    811 Jan 12 12:13 /usr/local/lib/libevent.la
lrwxrwxrwx  1 root root     21 Jan 12 12:13 /usr/local/lib/ 
libevent.so -> libevent-1.1.so.1.0.2

[root at melody memcached-1.1.12]# ll /usr/lib/libevent*
lrwxrwxrwx  1 root root 32 Jan 12 12:14 /usr/lib/libevent-1.1.so.1 - 
 > /usr/local/lib/libevent-1.1.so.1

root at melody libevent-1.1]# ll /lib/libevent*
lrwxrwxrwx  1 root root 32 Jan 12 12:14 /lib/libevent-1.1.so.1 -> / 
usr/local/lib/libevent-1.1.so.1

Any help would be much appreciated.  I hate hitting these bonk-your- 
head-against-computer-for-5-hour problems like this.

Ciao,
Kevin Watt
Allpoetry.com Community Manager
"Write, or it will be lost to the wind"




More information about the memcached mailing list