To install ncurses, try sudo apt install ncurses

For the -dev package, try sudo apt install libncurses-dev

There are no -dev packages for libncurses6 nor for libncursesw6.

Answer from user535733 on askubuntu.com
🌐
FreeBSD
forums.freebsd.org › development › userland programming and scripting
C - Unable to find the ncurses package. | The FreeBSD Forums
August 28, 2023 - The header file is located at ... /usr/include/ncurses/ncurses.h. I suggest to add the directory ncursesw to /usr/include and then put symbolic links of the ncurses headers into it....
Discussions

linux - Compiling Kernel : Unable to locate ncurses - Unix & Linux Stack Exchange
I am trying to compile the kernel. I downloaded the source . When I tried 'make menucionfig'. I got following result : * Unable to find the ncurses libraries or the * required header files. * 'make More on unix.stackexchange.com
🌐 unix.stackexchange.com
Node installation issue - Unable to locate package libncursesw5
Installing a new node on Ubuntu 24.04.1 LTS following steps on: developers. cardano. org/docs/get-started/cardano-node/installing-cardano-node/ I’m getting issue installing libncursesw5. anybody else getting the same issue? sudo apt-get update -y Reading package lists… More on forum.cardano.org
🌐 forum.cardano.org
12
0
November 26, 2024
vim - Couldn't find package libncurses5-dev - Stack Overflow
While installing Vim 7.3 on ubuntu 10.04 LTS, I encounter an error as below checking --with-tlib argument... empty: automatic terminal library selection checking for tgetent in -lncurses... no che... More on stackoverflow.com
🌐 stackoverflow.com
linux - libncurses.so.5 library missing in UBUNTU 22.04 installation for ARM64 (rapsberry PI 4) - Stack Overflow
Done E: Unable to locate package ia32-libs Box86 with Dynarec v0.2.7 e9fcef3d built on Aug 21 2022 00:07:30 Box86 with Dynarec v0.2.7 e9fcef3d built on Aug 21 2022 00:07:30 Error initializing native libncurses.so.5 (last dlerror is libncurses.so.5: cannot open shared object file: No such file or directory) Wine cannot find the ncurses ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
github.com › brndnmtthws › conky › issues › 217
Unable to find ncurses library · Issue #217 · brndnmtthws/conky
I'm trying to compile conky from source. But when I enter cmake ../ I get: CMake Error at cmake/ConkyPlatformChecks.cmake:125 (message): Unable to find ncurses library Call Stack (most recent c...
Author   ghost
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › beginner questions
E: Unable to locate package libncurses5-dev - Linux Mint Forums
I couldn't find libncurses-dev, but I found other files, like libncurses5, ncurses-base, ncurses-bin, libncurses5:i386, libncursesw5 and libncursesw5:i386. ... I'm on Mint 17.3 and I see it in Synaptic Package Manager (see the search word I used in the pic) (click to enlarge) The 404 error .
🌐
nixCraft
cyberciti.biz › nixcraft › howto › linux › how to install ncurses library on a linux
How To Install ncurses Library on a Linux - nixCraft
April 5, 2024 - Type the following dnf command to install ncurses header and libs:$ sudo dnf install ncurses-devel
🌐
GitHub
github.com › cardano-foundation › testnets-cardano-org › issues › 577
E: Unable to locate package ncurses-compat-libs · Issue #577 · cardano-foundation/testnets-cardano-org
May 10, 2021 - Reload to refresh your session. ... Where does the issue occur? On the page: https://developers.cardano.org/en/testnets/cardano/get-started/installing-and-running-the-cardano-node/building-the-node-from-source/ Under section: Downloading And Installing GHC At: sudo yum install ncurses-compat-libs
Find elsewhere
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › software & applications
Missing libncurses5:i386 with Android Studio Install - Linux Mint Forums
August 21, 2024 - Last edited by LockBot on Fri Feb 21, 2025 11:00 pm, edited 1 time in total. Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed. ... The whole line of libncurses5 packages are just empty placeholders now, so maybe trying it with libncurses6 will work.
🌐
STMicroelectronics Community
community.st.com › s › question › 0D53W00000OQqz7SAD › pc-prerequisite-issues-using-ubuntu-2004
PC Prerequisite Issues using Ubuntu 20.04 - STMicroelectronics Community
November 18, 2020 - Package python-git is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or ... udo apt-get install ncurses-dev libncurses5-dev libncursesw5-dev lib32ncurses5 libssl-dev linux-headers-generic u-boot-tools device-tree-compiler bison flex g++ libyaml-dev
Top answer
1 of 2
2

ncurses provides multiple ABIs in the same distribution. Previously, the default ABI was 5, and now it's 6. libncurses5 provides the v5 ABI, and libncurses6 provides the v6 ABI. You cannot use a piece of software linked against a shared library with an incompatible ABI like this because the shared library paths differ across ABIs so people don't accidentally load the wrong one and break their programs.

If you want to run an existing program linked against ABI v5, then you need the libncurses5 package. You do not need the -dev package unless you are developing against that package. If you are recompiling an existing package, you should use libncurses-dev, which will build against the latest version of ncurses unless you are sure you need to build against the old version. That package will include the curses.h header.

If you want to specify the location of the curses header, you should do that wit angle brackets: #include <curses.h>. It is a system path, and it is definitely provided by libncurses-dev.

If your program is using the standard curses API that's in common use, then recompiling it for a new version of ncurses should not change anything. The ABI changes likely consisted of changing some internal structures which do not affect the display but may enable new terminal features. The behavior of the curses API is standardized and breaking changes would not be expected.

It's likely that your TERM setting is indeed the problem. If you're running in an SSH session on another computer, it's possible that the system you're running it on lacks that terminal definition as part of the standard set, and requires an additional package (on Debian and Ubuntu, ncurses-term) that includes more terminal definitions. You can try running infocmp xterm-256color on that system, assuming it's running ncurses, to see if you do have that terminal definition. It will print terminal info if you do, and an error if you don't.

If you're in a screen or tmux session, then xterm-256color would be the wrong terminal type, and screen-256color would be a better choice. Even if not, you may want to check your terminal settings for the type it's emulating, since some terminal emulators have support for multiple terminal types.

2 of 2
0

Fixed it. It turns out that the curses calls in the app that didn't work were in a library that I hadn't rebuilt on the 20.04 system. The app that worked had its curses code in local modules that were recompiled when I rebuilt it.

Once I rebuilt the library with the curses calls and relinked the 'broken' app, it's all working with ncurses6. False alarm. Sorry.

🌐
Reddit
reddit.com › r/ubuntu › libncurses5-dev?
r/Ubuntu on Reddit: libncurses5-dev?
May 7, 2024 -

I'm running 24.04 in a docker container where I had already installed RVM using Dockerfile. As my next step I want to include a ruby installation through RVM within it as well. However every single time, no matter if I try installing it beforehand, I get a "missing required package" message for libncurses5-dev, stopping the docker image build. Looking at my packages with dpkg turns up that I have libncurses-dev installed, which is the package that installs whenever I try installing libncurses5-dev. Any way to prevent the undesired behavior?

🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[SOLVED] Issues with make menuconfig and the ncurses library / Newbie Corner / Arch Linux Forums
May 16, 2024 - make menuconfig make[1]: Verzeichnis ... -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -MMD -MP -I "." -I "/home/nikita/Embedded/esp/ESP8266_RTOS_SDK/tools/kconfig" -lncursesw *** Unable to find the ncurses libraries or the *** required ...