|
|
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I am using CentOS release 5; to find what version you are using, enter cat /etc/redhat-release
at a bash prompt. That is not to say that these steps won’t work for other linux distros, I just haven’t tried them. Anyway, when I first tried to install memcached I could not create the Makefile due to a dependence on libevent. So first, from /usr/local/src: curl -O http://monkey.org/~provos/libevent-1.3e.tar.gz tar xzvf libevent-1.3e.tar.gz cd libevent-1.3e ./configure --prefix=/usr/local make make install curl -O http://monkey.org/~provos/libevent-1.3e.tar.gz tar xzvf libevent-1.3e.tar.gz cd libevent-1.3e ./configure --prefix=/usr/local make make installHopefully everything went smoothly for you there. Now on to getting memcached, again from /usr/local/src: curl -O http://www.danga.com/memcached/dist/...d-1.2.2.tar.gz tar xzvf memcached-1.2.2.tar.gz cd memcached-1.2.2.tar.gz LDFLAGS='-Wl,--rpath /usr/local/lib' ./configure --prefix=/usr/local make make install curl -O http://www.danga.com/memcached/dist/...d-1.2.2.tar.gz tar xzvf memcached-1.2.2.tar.gz cd memcached-1.2.2.tar.gz LDFLAGS='-Wl,--rpath /usr/local/lib' ./configure --prefix=/usr/local make make installNow: HTML Code:
memcached -d -u root HTML Code:
ps aux | grep memcached Now to stop it: HTML Code:
pkill memcached For those curious as to what that LDFLAGS='-Wl,--rpath /usr/local/lib' is all about, enter at a bash prompt man ld This post prevents the following errors: HTML Code:
configure: error: libevent is required HTML Code:
memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory If you get the following error (which you will get if you are doing this under CentOS 64 bit): ./memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory You can fix this by simply doing this: HTML Code:
ln -s /usr/local/lib/libevent-1.3e.so.1 /lib64/ Last edited by Lovelinux; 29-07-2008 at 12:14 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell bash for memcached: Install memcached | Lovelinux | Server Manager | 0 | 28-06-2008 10:54 PM |