#!/bin/bash
mkdir toon
cd toon
wget https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz --no-check-certificate
wget http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz
wget http://launchpad.net/libmemcached/1.0/0.40/+download/libmemcached-0.40.tar.gz
wget http://python-libmemcached.googlecode.com/files/python-libmemcached-0.40.tar.gz
wget http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/Pyrex-0.9.9.tar.gz
tar zxf libevent-1.4.14b-stable.tar.gz
cd libevent-1.4.14b-stable
./configure --prefix=/usr/local/libevent
make
make install
cd ..
tar zxf libmemcached-0.40.tar.gz
cd libmemcached-0.40
# 必需先安装了libevent
./configure --with-libevent=/usr/local/libevent
make
make install
cd ..
tar zxf Pyrex-0.9.9.tar.gz
cd Pyrex-0.9.9
python setup.py install
cd ..
tar zxf python-libmemcached-0.40.tar.gz
cd python-libmemcached
python setup.py install
cd ..
ldconfig
参考:
http://code.google.com/p/python-libmemcached/
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
http://hi.baidu.com/ah__fu/blog/item/c23cbcee852de8edb3fb9560.html
启动参考http://www.cnblogs.com/technet/archive/2011/09/11/2173485.html