MemcachedとGearmandのインストール(libmysql + libmemcachedサポート付で)

Gearmandについて。

http://gearman.org/gearman

現在の最新版でのインストール方法を書く。

 

■memcached-1.4.15

>cd /usr/local/src/memcached-1.4.15
>useradd -d /var/empty -s /sbin/nologin memcached
>yum install libevent-devel
>./configure --prefix=/usr/local/memcached --enable-64bit
>make
>make install

 

■libmemcached 1.0.15

>cd /usr/local/src/libmemcached-1.0.15
>./configure --prefix=/usr/local/libmemcached --with-memcached=/usr/local/memcached/bin/memcached
>make
>make install

 

■gearmand-1.1.4

>cd /usr/local/src/gearmand-1.1.4
./configure --prefix=/usr/local/gearmand --with-mysql=/usr/local/mysql/bin/mysql_config --enable-libmemcached --with-lib-prefix=/usr/local/libmemcached CPPFLAGS="-I/usr/local/libmemcached/include" LDFLAGS="-L/usr/local/libmemcached/lib"
>make
>make install