Install memcached & redis & tokyocabinet & whitedb in AIX

Memcached

  • for GNU make, download gmake from http://www.bullfreeware.com/affichage.php?id=1264

  • Download libevent-2.0.21-stable.tar.gz and memcached-1.4.15.tar.gz from offical website

  • Configure & Install

    1
    2
    ./configure --prefix=/home/action/libevent
    ./configure --with-libevent=/home/action/libevent/ --prefix=/home/action/memcached
  • Rename method

    1
    2
    3
    sed 's/thread_init/thread_init_memcached/g' memcached.h > memcached.h
    sed 's/thread_init/thread_init_memcached/g' memcached.c > memcached.c
    sed 's/thread_init/thread_init_memcached/g' thread.c > thread.c
  • Problem
    Can’t enable threads without the POSIX thread library.

  • Solve
    Remove “-Wl,-rpath,$ledir/lib” in file configure

  • Reference
    AIX 下安装 memcached

Redis

tokyocabinet

  • Download tokyocabinet-1.4.48 from http://fallabs.com/tokyocabinet/
    1
    2
    3
    4
    5
    ./configure --prefix=/home/action/tokyocabinet
    sed 's/-Wl,-soname,libtokyocabinet.so.$(LIBVER)//g' Makefile > Makefile.bak
    mv Makefile.bak Makefile
    gmake
    gmake install

whitedb

  • Download whitedb-0.6.1 from http://whitedb.org
    1
    2
    3
    4
    5
    ./configure --prefix=/home/action/whitedb --with-python // found python binding not work
    sed 's/LIBS = -lm /LIBS = -lm -lpthread /g' Makefile > Makefile.bak
    mv Makefile.bak Makefile
    gmake
    gmake install

Package in my AIX

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
rpm -qa

rsync-3.0.6-1
tcl-8.4.7-3
tk-8.4.7-3
expect-5.42.1-3
bash-4.2-1
AIX-rpm-7.1.1.15-2
gettext-0.17-8
gdbm-1.10-1
libiconv-1.14-1
ncurses-5.9-3
info-5.0-2
readline-6.2-3
sqlite-3.7.15.2-2
gmp-5.1.3-1
db-4.8.24-4
zlib-1.2.5-6
libffi-3.0.9-3
bzip2-1.0.6-2
expat-2.1.0-1
python-2.7.2-3
mpfr-3.1.2-1
libmpc-0.9-1
logrotate-3.8.3-1
libgcc-4.8.1-1
zlib-devel-1.2.5-6
bzip2-devel-1.0.6-2
gcc-4.8.1-1
gcc-cpp-4.8.1-1
libstdc++-4.8.1-1
libstdc++-devel-4.8.1-1
gcc-c++-4.8.1-1
make-3.82-2
popt-1.16-2
coreutils-8.21-1
redis-2.6.16-1
python-memcached-1.53-1
python-devel-2.7.2-3