Wednesday, 8 April 2015

Aeroproxy Installation Guide

                                                    Aeroproxy installation 


OS - centos 6.5

Packages required  -

yum install libevent-devel.x86_64 libevent.x86_64  cmake.x86_64 openssl-devel.x86_64 openssl.x86_64
yum groupinstall "Development Tools"

1. libevhtp

wget https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz --no-check-certificate
tar -zxvf libevent-2.0.22-stable.tar.gz
./configure
make
make install
git clone https://github.com/ellzey/libevhtp.git
cd libevhtp/
cmake . -DEVHTP_DISABLE_SSL=ON
make
make install

2. Protobuf -c
wget http://ftpmirror.gnu.org/autoconf/autoconf-2.65.tar.gz
cd autoconf-2.65
./configure
make
make install

wget https://protobuf.googlecode.com/svn/rc/protobuf-2.6.0.tar.gz
cd protobuf-2.6.0
./configure
make
make install

git clone https://github.com/protobuf-c/protobuf-c.git
cd protobuf-c/
./autogen.sh
./configure
make
make install


3. C libevent Client Library - Linux SDK from Aerospike

tar -zxvf citrusleaf_client_libevent2_2.1.41.tgz
cd citrusleaf_client_libevent2_2.1.41
vi Makefile and change following

        $(MAKE) -C example
        $(MAKE) -C example2
        $(MAKE) -C example3
        $(MAKE) -C example4
        $(MAKE) -C example6
        $(MAKE) -C tests/loop_c_ev2

to

        #$(MAKE) -C example
        #$(MAKE) -C example2
        #$(MAKE) -C example3
        #$(MAKE) -C example4
        #$(MAKE) -C example6
        #$(MAKE) -C tests/loop_c_ev2

make
make install

cd lib
cp lib/libev2citrusleaf.a ../aeroproxy/libs/

cd aeroproxy

vim aeroproxy_common.h +20
and change following

include "aerospike/as_integer.h"
include "aerospike/as_string.h"
include "aerospike/as_arraylist.h"
include "aerospike/as_pair.h"
include "aerospike/as_hashmap.h"
include "aerospike/as_hashmap_iterator.h"
include "aerospike/as_stringmap.h"

to

//#include "aerospike/as_integer.h"
//#include "aerospike/as_string.h"
//#include "aerospike/as_arraylist.h"
//#include "aerospike/as_pair.h"
//#include "aerospike/as_hashmap.h"
//#include "aerospike/as_hashmap_iterator.h"
//#include "aerospike/as_stringmap.h"

vim aeroproxy.h +19

and change following

int as_write_data_map(evbase_t *evbase, const char *key, const char *bin_name, const as_map *map, void *udata);
 to
//int as_write_data_map(evbase_t *evbase, const char *key, const char *bin_name, const as_map *map, void *udata);

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

make

make will generate aeroproxy bin file , copy that in aeroproxy folder of aerospike server.


##########

1 comment:

  1. Top 10 casinos in Missouri - JTM Hub
    The best casino is Foxwoods Resort Casino in St. 제주 출장샵 Louis, MO. 태백 출장샵 · MGM Grand Detroit · The 창원 출장샵 Grand Detroit Casino · 경기도 출장안마 Foxwoods Resort Casino 창원 출장마사지 · Red Rock Resort · The

    ReplyDelete