加载共享库时出错:libevent-2.0.so.5
Error while loading shared libraries: libevent-2.0.so.5
升级后 ubuntu 16 到 18。执行 tmux 时出现此错误
tmux:加载共享库时出错:libevent-2。0.so.5:无法打开共享对象文件:没有这样的文件或目录
这是我执行 ldd $(which tmux)
时的结果
linux-vdso.so.1 (0x00007ffd9878a000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f5588dfc000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f5588bd2000)
libevent-2.0.so.5 => not found
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f55889b7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f55885c6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5588fff000
libevent-2.0.so.5 => not found
libevent-2.0-5
(xenial-updates) 被重新打包为 compat-libevent2-5_2.0.21-1ubuntu18_amd64.deb :与 Ubuntu 18.04“libevent-2.1-6”没有冲突。
compat-libevent2-5
提供 /usrlib/libevent-2.0.so.5 -> libevent-2.0.so.5.1.9
下载linkhttps://drive.google.com/file/d/1xG1a3GMZuLc1HIRYMP2vythuqjODmN8o/view?usp=sharing
软件包安装:sudo gdebi Downloads/compat-libevent2-5_2.0.21-1ubuntu18_amd64.deb
升级后 ubuntu 16 到 18。执行 tmux 时出现此错误
tmux:加载共享库时出错:libevent-2。0.so.5:无法打开共享对象文件:没有这样的文件或目录
这是我执行 ldd $(which tmux)
linux-vdso.so.1 (0x00007ffd9878a000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f5588dfc000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f5588bd2000)
libevent-2.0.so.5 => not found
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f55889b7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f55885c6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5588fff000
libevent-2.0.so.5 => not found
libevent-2.0-5
(xenial-updates) 被重新打包为 compat-libevent2-5_2.0.21-1ubuntu18_amd64.deb :与 Ubuntu 18.04“libevent-2.1-6”没有冲突。
compat-libevent2-5
提供 /usrlib/libevent-2.0.so.5 -> libevent-2.0.so.5.1.9
下载linkhttps://drive.google.com/file/d/1xG1a3GMZuLc1HIRYMP2vythuqjODmN8o/view?usp=sharing
软件包安装:sudo gdebi Downloads/compat-libevent2-5_2.0.21-1ubuntu18_amd64.deb