tomcat7 - Memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file -
situation: installed memcached on centos 5 (64 bit). ended installing php plugins using pecl, though they're unnecessary now.
problem:when execute
/etc/init.d/memcached start
i following error:
starting memcached: memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: no such file or directory
but file libevent-2.0.so.5 present in /opt/couchbase/lib/.
should there in other folder ? how memcached start ?
/opt/couchbase/lib not set on system library path default. that's why unable find libevent when running /etc/init.d/memcached.
to solve can run command follows:
ld_library_path=/opt/couchbase/lib /etc/init.d/memcached
or solve on long term add following file (assuming using centos):
/etc/ld.so.conf.d/couchbase.conf
and in file add path "/opt/couchbase/lib". run ldconfig , re-run command start memcached.
Comments
Post a Comment