Comments on How To Install Repcached (Memcached Replication) For High-Availability Over 2 Nodes On Ubuntu 11.04

How To Install Repcached (Memcached Replication) For High-Availability Over 2 Nodes On Ubuntu 11.04 This is a short tutorial based on MarcusSpiegel's howto found here. This how to will cover the missing parts for installing Repcached on Ubuntu server 11.04. This is a copy/paste friendly tutorial so using putty will make this a lot easier. This how to will show you how to install and build memcached with replication, create a startup script and configure PHP to use memcache for sessions rather than storing them as files. This tutorial assumes you have set up 2 servers to replicate the information over.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Vishnu

Hi,

I'm trying to install repcached on a local virtual machine. When I do the "make install" step, I'm getting the following error: 

In function ‘add_iov’:

memcached.c:696:30: error: ‘IOV_MAX’ undeclared (first use in this function)

         if (m->msg_iovlen == IOV_MAX ||

                              ^

memcached.c:696:30: note: each undeclared identifier is reported only once for each function it appears in

memcached.c: In function ‘complete_nread’:

memcached.c:834:13: warning: implicit declaration of function ‘replication_call_rep’ [-Wimplicit-function-declaration]

             replication_call_rep(ITEM_key(it), it->nkey);

 

....

 

Does this happen? If not, please help me to resolve this issue. Thank you.

By: chris

You need to compile libevent1.rpm -ivh http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/14/Fedora/source/SRPMS/libevent-1.4.14b-1.fc14.src.rpm

cp /root/rpmbuild/SOURCES/libevent-1.4.14b-stable.tar.gz /usr/src

cd /usr/src/

tar -xvf libevent-1.4.14b-stable.tar.gz 

cd libevent-1.4.14b-stable

makemake install

By: Frosune

memcached.c:696:30: error: ‘IOV_MAX’ undeclared (first use in this function)

Solution: https://www.cnblogs.com/lvcisco/p/10369025.html