3

I'm using a server that is running CentOS 9 and I'm having issue compiling something that uses libncurses.so.5.
I installed the ncurses-devel package, but it is in version 6, and isn't found by the compiler.
I saw that on CentOS 8, it is possible to install ncurses-compat-libs for that purpose, bit it doesn't seem to be available for CentOS 9.
Is there a way to either install ncurses-compat-libs in CentOS 9, or to install the library through another mean?

Thank you

4
  • Redhat dropped ncurses-compat earlier this year (no real discussion). You could probably do an rpm-rebuild of the older package srpm. Commented Aug 29, 2022 at 8:22
  • Any hint as of how to do that? Or is there a way to manually install it? Commented Sep 22, 2022 at 7:51
  • I'd get the srpm (it's simpler...) from website and rebuild that, e.g., see wiki. Commented Sep 22, 2022 at 8:20
  • Simply install the ncurses-compat-libs package. See this answer.
    – akhan
    Commented Jun 14, 2023 at 6:44

1 Answer 1

1

Ok, so per the comment of Thomas Dickey above, I rebuilt the RPM package from the ncurses-compat-libs<version>.src.rpm downloaded from RPM Find.
After that, I ran rpmbuild --rebuild ncurses-compat-libs<version>.src.rpm, which created a bunch of rpm files in ~/rpmbuild/RPMS/<arch>/*.rpm.
I installed all of them at once using the sudo dnf localinstall --allowerasing <list of rpms> to make sure all the dependencies could be resolved.
See the wiki provided by Thomas Dickey for more details.
Thanks for the help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.