最近从 16.04 升级到 17.10,当我尝试运行 tmux 时抛出了这个错误。
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
我该如何解决这个问题?
apt-cache 策略 tmux结果
Installed: 2.5-3build1
Candidate: 2.5-3build1
Version table:
*** 2.5-3build1 500
500 http://in.archive.ubuntu.com/ubuntu artful/main amd64 Packages
100 /var/lib/dpkg/status
答案1
我遇到了这个问题,发现我tmux
安装了两个二进制文件。为了简单起见,我的建议是:
apt remove tmux
which tmux
如果第二次有回应,rm
它会重新安装
答案2
这可能对 ubuntu 有帮助,因为可能需要在源代码编译后为所有/usr/local/libevent/
路径创建符号链接:ln -s
https://noknow.info/it/os/install_libevent_from_source
wget https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz
tar xvfz libevent-2.1.11-stable.tar.gz
cd libevent-2.1.11-stable
./configure --prefix=/usr/local/libevent/2_1_11
make
make install