Install memcached & redis & tokyocabinet & whitedb

2022-04-13 00:00:00 专区 订阅 付费 交易 评论

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

        相关文章