Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 11487  / 3 Years ago, wed, november 24, 2021, 6:36:48

After upgrade ubuntu 16 to 18, I got this error when executing tmux:



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



and here's result when I execute 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


I got tmux by following instructions on GitHub. It worked on Ubuntu 16.



$ apt-cache policy tmux

Installed: (none)
Candidate: 2.6-3
Version table:
2.6-3 500
500 http://id.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status

More From » upgrade

 Answers
4

As @guiverc commented - both tmux and libevent are well-packaged on Ubuntu Bionic Beaver 18.04 LTS (and other versions).



You should remove locally-installed tmux with one of the following methods:




  • Check version of locally-installed tmux:



    tmux -V # or from `man tmux`


    Then clone this version from its github repository, compile it again and run



    sudo make uninstall

  • Simply remove your self-installed tmux with



    sudo rm $(which tmux)


    Note: running sudo rm $(which tmux) looks safe because of the fact that even official package do not have shipped other binaries or libraries.




And install package from repository:



sudo apt-get install tmux

[#8311] Thursday, November 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainlyyor

Total Points: 210
Total Questions: 129
Total Answers: 116

Location: Barbados
Member since Sun, Nov 27, 2022
2 Years ago
;