1 #!/bin/bash 2 mkdir ~/build 3 cd ~/build 4 wget http://download.oracle.com/berkeley-db/db-5.1.19.tar.gz 5 tar xzf db-5.1.19.tar.gz 6 cd db-5.1.19/build_unix/ 7 ../dist/configure 8 make 9 make install 10 11 cd ~/build 12 wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.10-stable.tar.gz 13 tar xzf libevent-2.0.10-stable.tar.gz 14 cd libevent-2.0.10-stable/ 15 ./configure 16 make 17 make install 18 19 cd ~/build 20 wget http://memcacheq.googlecode.com/files/memcacheq-0.2.0.tar.gz 21 tar xzf memcacheq-0.2.0.tar.gz 22 cd memcacheq-0.2.0/ 23 ./configure –with-bdb=/usr/local/BerkeleyDB.5.1 –with-libevent=/usr/local/lib –enable-threads 24 make 25 make install