A particular android build requires a dependency on libncurses. This was the error.
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory12:33:20 ninja failed with: exit status 1
I tried sudo apt install after enabling the universe repository. That didn't work.
I manually downloaded libncurses 5 from https://ftp.gnu.org/gnu/ncurses/
After extracting and configuring, the make is failing.
This is the error after make
cd man && make INSTALL_PREFIX="" allmake[1]: Entering directory '/home/inntot/Downloads/ncurses-5.0/man'sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail >terminfo.5make[1]: Leaving directory '/home/inntot/Downloads/ncurses-5.0/man'cd include && make INSTALL_PREFIX="" allmake[1]: Entering directory '/home/inntot/Downloads/ncurses-5.0/include'sh ./MKhashsize.sh ./Caps >hashsize.hAWK=mawk sh ./MKparametrized.sh ./Caps >parametrized.hmawk -f MKterm.h.awk ./Caps > term.hsh ./edit_cfg.sh ../include/ncurses_cfg.h term.h** edit: HAVE_TCGETATTR** edit: HAVE_TERMIOS_H** edit: HAVE_TERMIO_H** edit: NCURSES_CONST** edit: BROKEN_LINKERmake[1]: Leaving directory '/home/inntot/Downloads/ncurses-5.0/include'cd ncurses && make INSTALL_PREFIX="" allmake[1]: Entering directory '/home/inntot/Downloads/ncurses-5.0/ncurses'sh ./base/MKlib_gen.sh "gcc -E" "mawk" <../include/curses.h | \fgrep undef >../include/nomacros.ho make_hash -O2 -I../ncurses -I. -DNDEBUG -I. -I../include -I/usr/local/include - -DHAVE_CONFIG_H -DTERMINFO=\"/usr/local/share/terminfo\" -DMAIN_PROGRAM ./tinfo/comp_hash.c make[1]: o: No such file or directorymake[1]: [Makefile:179: make_hash] Error 127 (ignored)sh ./tinfo/MKcaptab.awk mawk ./../include/Caps > comp_captab.c./tinfo/MKcaptab.awk: 19: ./make_hash: not found./tinfo/MKcaptab.awk: 20: ./make_hash: not foundsh ./tty/MKexpanded.sh "gcc -E" -I../ncurses -I. -DNDEBUG -I. -I../include -I/usr/local /include -DHAVE_CONFIG_H -DTERMINFO=\"/usr/local/share/terminfo\" > expanded.csh ./tinfo/MKfallback.sh >fallback.cmawk -f ./tinfo/MKnames.awk ./../include/Capscat namehdr boolnames boolfnames numnames numfnames strnames strfnames nameftr >./names.ccat namehdr boolcodes numcodes strcodes codeftr >./codes.crm -f namehdr nameftr codeftr boolnames boolfnames boolcodes numnames numfnames numcodes strnames strfnames strcodeso make_keys -O2 -I../ncurses -I. -DNDEBUG -I. -I../include -I/usr/local/include -DHAVE_CONFIG_H -DTERMINFO=\"/usr/local/share/terminfo\" ./tinfo/make_keys.c make[1]: o: No such file or directorymake[1]: [Makefile:174: make_keys] Error 127 (ignored)./make_keys ./tinfo/keys.list > init_keytry.h /bin/sh: 1: ./make_keys: not foundmake[1]: *** [Makefile:169: init_keytry.h] Error 127make[1]: Leaving directory '/home/inntot/Downloads/ncurses-5.0/ncurses'make: *** [Makefile:96: all] Error 2
How do I add these missing files and make libncurses5 for Ubuntu 23.1?