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

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

      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

Download redis from http://www.perzl.org/aix/index.php?n=Main.Redis
Download dependencies from http://www.bullfreeware.com/

check dependency rpm -qRp redis-2.6.16-1.aix5.2.ppc.rpm
check file list rpm -qlp redis-2.6.16-1.aix5.2.ppc.rpm

rpm -ivh logrotate-3.8.3-1
rpm -ivh popt-1.16-2
rpm -ivh coreutils-8.21-1

Reference
Redis 2.4持久化测试报告
nosql-database

tokyocabinet

  • Download tokyocabinet-1.4.48 from http://fallabs.com/tokyocabinet/

    ./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

      ./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

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

转载于:https://my.oschina.net/l1z2g9/blog/177213

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值