WIMG:Distributed Image Storage and Processing system
Learned a lot from zimg:https://github.com/buaazp/zimg
libevent: Provides a sophisticated framework for buffered network IO.
memcached: A distributed memory object caching system.
protobuf: Google fast data Serialization protocol.
imagemagick: A software suite to create, edit, compose, or convert bitmap images.
you should setup enviroment first.
wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
tar zxvf openssl-1.0.1g.tar.gz
./config shared --prefix=/usr/local --openssldir=/usr/ssl
make && make install
[make install_sw when "Expected text after =item, not a number"]
wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxvf libevent-2.0.17-stable.tar.gz
./configure --prefix=/usr/local
make && make install
wget ftp://ftp.kddlabs.co.jp/graphics/ImageMagick/ImageMagick-6.8.9-8.tar.gz
tar xzvf ImageMagick-6.8.9-8.tar.gz
cd ImageMagick-6.8.9-0
./configure --prefix=/usr/local
make && make install
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar zxvf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18
./configure -prefix=/usr/local --with-memcached
make && make install
wget http://www.memcached.org/files/memcached-1.4.19.tar.gz
tar zxvf memcached-1.4.19.tar.gz
cd memcached-1.4.19
./configure --prefix=/usr/local
make
make install
wget http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
tar -zxvf protobuf-2.5.0.tar.gz
./configure
make && make install
ldconfig
git clone https://github.com/douban/beansdb
cd beansdb
./configure --prefix=/usr/local
make
[run aclocal if 'error: possibly undefined macro: AM_INIT_AUTOMAKE' occurs]
sudo apt-get install openssl libevent-dev libmagickwand-dev libmemcached-dev
cd [WIMG_ROOT]
make
Three executable files will be created(wmaster/wmaster, wnode/wnode, wclient/wclient)