美文网首页
ubuntu14.0 下安装pylibmc

ubuntu14.0 下安装pylibmc

作者: 晨暮云海 | 来源:发表于2017-06-26 10:12 被阅读0次

    1.libevent的安装:

    $sudo apt-get install libevent-dev
    

    2.memcached的安装:

    $sudo apt-get install memcached
    $vim /etc/memcached.conf  (改里面的ip为0.0.0.0)
    

    3.libmemcached的安装:
    下载安装包:https://launchpad.net/libmemcached/+download

    tar xzf libmemcached-1.0.7.tar
    cd libmemcached-1.0.7
    ./configure --prefix=/解压文件所在路径/libmemcached-1.0.7
    make && sudo make install 
    ln -s /usr/local/lib/libmemcached.so.10  /usr/lib/libmemcached.so.10 
    

    4.pylibmc的安装:

    $pip install pylibmc
    

    要是以上安装有问题,安装这个就行了

    sudo apt-get install libmemcached-dev zlib1g-dev
    

    python3.6.要安装:sudo apt-get install python3.6-dev

    相关文章

      网友评论

          本文标题:ubuntu14.0 下安装pylibmc

          本文链接:https://www.haomeiwen.com/subject/qxpdcxtx.html