I am trying to build AOSP from source. I am unable as I recieve this error:
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory 06:11:49 ninja failed with: exit status 1
looking into which versions i have,
find /usr/lib/ -name *ncurses*
I get this:
/usr/lib/x86_64-linux-gnu/libncurses.so.6.4 /usr/lib/x86_64-linux-gnu/libncurses.so /usr/lib/x86_64-linux-gnu/libncurses.a /usr/lib/x86_64-linux-gnu/libncursesw.so.6.4 /usr/lib/x86_64-linux-gnu/libncursesw.so.6 /usr/lib/x86_64-linux-gnu/libncurses.so.6 /usr/lib/x86_64-linux-gnu/libncursesw.a /usr/lib/x86_64-linux-gnu/libncursesw.so /usr/lib/x86_64-linux-gnu/vlc/plugins/gui/libncurses_plugin.so /usr/lib/x86_64-linux-gnu/libncurses++w.a /usr/lib/x86_64-linux-gnu/libncurses++.a /usr/lib/x86_64-linux-gnu/pkgconfig/ncursesw.pc /usr/lib/x86_64-linux-gnu/pkgconfig/ncurses++.pc /usr/lib/x86_64-linux-gnu/pkgconfig/ncurses.pc /usr/lib/x86_64-linux-gnu/pkgconfig/ncurses++w.pc /usr/lib/valgrind/ncurses.supp`
Notice no libncurses5So we'll do an update and
sudo apt-get install libncurses5
But to my surprise I get this...
[sudo] password for jr: Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package libncurses5
did some digging and found that in order to install the ncurses library in ubuntu, I must first install libncurses5-dev & libncursesw5-dev.....
sudo apt-get install libncurses5-dev libncursesw5-dev [sudo] password for jr: Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'libncurses-dev' instead of 'libncurses5-dev' Note, selecting 'libncurses-dev' instead of 'libncursesw5-dev' libncurses-dev is already the newest version (6.4+20240113-1ubuntu2). 0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.