In Slackware 14.1 /usr/local/lib ( which is the default installation path for libevent) is already included in the ld configuration. If in case you are referring this guide for other distributions you might have check it. If it is not included in the ld configuration you can add it by editing /etc/ld.so.conf

Step 3 : Change the directory to the current uncompressed file directory.

$ cd /home/dev/Software/memcached-1.4.17

Step 4 : run the ./configure with appropriate parameters

$ ./configure --prefix=/opt/memcached

Step 5 : run the make script

$ make && make test

Step 6 : run make install

$ su -c "make install"
password :

Step 7 : run memcached

$ memcached -d -m 256 -u dev -p 11211

Possible pitfalls :

Sometimes an error is shown which says ‘cannot open shared object file : libevent-x.x.so.x : No such file or directory‘.

Problems can be

You forgot to install libevent.Solution : install libevent library.

You compiled libevent and memcached from source package and did that for different hardware platform’s x86/64 using lib/lib64 folders.Solution : uninstall the current installation using ‘make uninstall’ and reinstall the library properly.

Something is messed up and synlink wasn’t properly generatedSolution : create the symlink for libevent library properly.
On a 32 bit system: