zoukankan      html  css  js  c++  java
  • 安装memcache 时提示error while loading shared libraries: libevent2.0解决办法

    安装memcache

    启动服务时出现 error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

    >whereis libevent-2.0.so.5

    libevent-2.0.so.5: /usr/local/lib/libevent-2.0.so.5

    > ldd /usr/local/bin/memcached
              libevent-2.0.so.5 => not found
            libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b83fce0e000)
            libc.so.6 => /lib64/libc.so.6 (0x00002b83fd029000)
            librt.so.1 => /lib64/librt.so.1 (0x00002b83fd381000)
            /lib64/ld-linux-x86-64.so.2 (0x00002b83fc9b0000)

    > LD_DEBUG=libs ./memcached -v
    找到默认路径 /usr/lib/

    >sudo ln -s /usr/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5

    >sudo ldd /usr/local/bin/memcached
               libevent-2.0.so.5 => /usr/lib64/libevent-2.0.so.5 (0x00002b83fcbcd000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b83fce0e000)
            libc.so.6 => /lib64/libc.so.6 (0x00002b83fd029000)
            librt.so.1 => /lib64/librt.so.1 (0x00002b83fd381000)
            /lib64/ld-linux-x86-64.so.2 (0x00002b83fc9b0000)

  • 相关阅读:
    ASP.NET应用程序与页面生命周期
    Git源码管控规范
    redis cluster
    jwt token and shiro
    openapi and light-4j
    ps 证件照制作
    js eval 动态内容生成
    pdnovel 看书 读书 听书
    crawler 使用jQuery风格实现
    websocket聊天体验(二)
  • 原文地址:https://www.cnblogs.com/bjdxy/p/2792710.html
Copyright © 2011-2022 走看看