Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: error while loading shared libraries: libncursesw.so.6 #82

Closed
johann-petrak opened this issue Sep 2, 2020 · 7 comments
Closed

Comments

@johann-petrak
Copy link

On Ubuntu 20.04, after installation (from 3.0.0 tarball or github master) I get the error message:

htop: error while loading shared libraries: libncursesw.so.6: cannot open shared object file: No such file or directory
@rien333
Copy link

rien333 commented Sep 2, 2020

Well, do you have ncurses installed somewhere? I'm not sure which ubuntu package provides libncursesw.so specifically, but that package is what you need to get htop working. That readme does say that ncurces is required, btw.

@vielmetti
Copy link

On Debian Buster, I did apt-get install libncurses-dev to provide the needed dependency.

@rien333
Copy link

rien333 commented Sep 3, 2020

I did apt-get install libncurses-dev to provide the needed dependency.

Yeah, that's a somewhat confusing part of the docs. It says ncurses is needed, but debian-based distro's often bundle various (development) libs separately from the main package.

@johann-petrak
Copy link
Author

sudo apt-get install libncurses-dev tells me:

Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
libncurses5-dev is already the newest version (6.1-1ubuntu1.18.04)

All available packages with a prefix libncursesw are called libncursesw5*.

Since I did ./configure and compile the software I would have thought that thiese kinds of things are being dealt with in the configure step?

@GHPS
Copy link

GHPS commented Dec 29, 2020

Since I did ./configure and compile the software I would have thought that thiese kinds of things are being dealt with in the configure step?

I had the same issue - compiling htop version 3.0.5-dev, also on Ubuntu 18.04, also with libncursesw5* installed:

./htop: error while loading shared libraries: libncursesw.so.6: cannot open shared object file: No such file or directory

The solution is to disable unicode support in config:

./configure --disable-unicode

Seemingly the new version of htop has optional unicode support which needs libncursesw6 - which can
be disabled.

@fasterit
Copy link
Member

@GHPS 18.04 doesn't have libncursesw6 as you can see from https://packages.ubuntu.com/search?keywords=libncursesw6
Possibly you installed that from another suite or source and configure gets confused. Better use libncursesw5 and the -dev package that comes with your distro.

@GHPS
Copy link

GHPS commented Dec 29, 2020

18.04 doesn't have libncursesw6

Yes - that is what I wrote. And what caused the error in the first place...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants