安装memcached时找不到libevent的符号链接

时间:2022-04-09 20:38:37

After installing memcached and trying to run using the memached command I receive this error :

安装memcached并尝试使用memached命令运行后,我收到此错误:

memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

After googling I found this : http://www.nigeldunn.com/2011/12/11/libevent-2-0-so-5-cannot-open-shared-object-file-no-such-file-or-directory/ which suggest to add a symbolic link : ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5 but I receive same error.

谷歌搜索后我发现了这个:http://www.nigeldunn.com/2011/12/11/libevent-2-0-so-5-cannot-open-shared-object-file-no-such-file-or-目录/建议添加符号链接:ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5但我收到同样的错误。

What else can I try ?

我还能尝试什么?

1 个解决方案

#1


1  

I've just re-created the symbolic link and it seems to work fine. Only thing I can think of is that perhaps I originally created the link logged in as non root.

我刚刚重新创建了符号链接,它似乎工作正常。我唯一能想到的是,也许我最初创建了以非root身份登录的链接。

#1


1  

I've just re-created the symbolic link and it seems to work fine. Only thing I can think of is that perhaps I originally created the link logged in as non root.

我刚刚重新创建了符号链接,它似乎工作正常。我唯一能想到的是,也许我最初创建了以非root身份登录的链接。