You are not logged in.

#1 2015-09-23 19:31:33

rlemmon
Member
From: Frodsham, UK
Registered: 2014-12-12
Posts: 4

[SOLVED]tmux and libncursesw.so.5

Hi All,

I have recently done an update of my system with pacman -Syu. However, I have a persistent problem.

When I try to run tmux I get the following error:

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

I know that ncurses has been updated recently from version 5 to version 6. However, I would expect the new tmux after upgrade to be linked to ncurses6. It is clearly looking for ncurses5.

It is only happening with tmux. Other programmes that use ncurses such as vifm work fine.

Tmux depends on ncurses, libevent and libutempter
Vifm (for example) depends on ncurses and desktop-file-utils.
So if one works, I am not sure why the other doesnt.

I have searched the forums and found people have had problems with AUR packages, needing to rebuild them after the ncurses update. However tmux should not have such a problem.

I have tried uninstalling and reinstalling tmux but still get the error.

I am at a loss what to do now. Help please ?

Thanks
Roy.

Last edited by rlemmon (2015-09-23 20:06:53)

Offline

#2 2015-09-23 19:41:49

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED]tmux and libncursesw.so.5

What's the output of "pacman -Qi tmux"?

What does running "/usr/bin/tmux" do?

Offline

#3 2015-09-23 19:53:59

rlemmon
Member
From: Frodsham, UK
Registered: 2014-12-12
Posts: 4

Re: [SOLVED]tmux and libncursesw.so.5

The output of pacman -Qi tmux is :

Name           : tmux
Version        : 2.0-4
Description    : A terminal multiplexer
Architecture   : x86_64
URL            : http://tmux.github.io/
Licenses       : BSD
Groups         : None
Provides       : None
Depends On     : ncurses  libevent  libutempter
Optional Deps  : None
Required By    : None
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size : 483.00 KiB
Packager       : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date     : Tue 15 Sep 2015 10:36:38 PM BST
Install Date   : Wed 23 Sep 2015 08:14:23 PM BST
Install Reason : Explicitly installed
Install Script : No
Validated By   : Signature


Running /usr/bin/tmux works correctly. But just running tmux does not work. I am still confused.

Interestingly, running mutt-sidebar (an AUR package) also produced the same error as tmux. It also requires ncurses. I have just removed mutt-sidebar and rebuilt the package and now it works correctly.

Thanks for your help.

Inter

Offline

#4 2015-09-23 19:57:12

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED]tmux and libncursesw.so.5

What does "whereis tmux" show?

You apparently have some other tmux binary in your $PATH.

Offline

#5 2015-09-23 19:59:18

rlemmon
Member
From: Frodsham, UK
Registered: 2014-12-12
Posts: 4

Re: [SOLVED]tmux and libncursesw.so.5

I have just noticed that

echo $PATH

produces:

/usr/local/bin:/usr/bin:/usr/sbin:/sbin

Looking in /usr/local/bin, I see one file: tmux !
,
So presumably when I type just tmux, it finds that old copy (from 27 Dec 2014), whereas when I type /usr/bin/tmux it finds the newly built copy from 15 Sep 2015.

I don't know why there is a copy in local. I will delete it.

Offline

#6 2015-09-23 20:06:17

rlemmon
Member
From: Frodsham, UK
Registered: 2014-12-12
Posts: 4

Re: [SOLVED]tmux and libncursesw.so.5

I have deleted the second version of tmux.

Everything fine now.

Thanks for your help.

Cheers
Roy.

Offline

Board footer

Powered by FluxBB