Linux – memcached install issues with lib event on server

installationlinuxmemcachedPHP

I've installed libevent on my server in the directory root/data/ and have i'm about to install memcached with

./configure –with-lib-event=/data/; make; make install

However, after running a bit I get this error saying i'm pointing to the wrong directory for libevent.

checking for libevent directory... configure: error: libevent is required.  You can get it from http://www.monkey.org/~provos/libevent/

      If it's already installed, specify its path using --with-libevent=/dir/

make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

Any suggestions. I am not experience with cli so anything is help. Thanks!

Best Answer

Run:

find /lib /usr/lib /usr/local/lib | grep -i libevent.so

Then use directory it finds libevent.so as configuration parameter.