Search code examples
centosncurses

Install ncurses-5 in CentOS 9


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


Solution

  • 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!