Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I'm building a substratum theme from https://github.com/substratum/template

I'm getting the following errors on run:

Build command failed.
Error while executing process /home/anubhav/Android/Sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/anubhav/AndroidStudioProjects/template/app/src/main/jni/Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-24 NDK_OUT=/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/lib /home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libLoadingProcess.so}
[armeabi-v7a] Compile thumb  : LoadingProcess <= LoadingProcess.c
/home/anubhav/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open       shared object file: No such file or directory
make: *** [/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/LoadingProcess/LoadingProcess.o] Error 127 

I'm running Android Studio 3.0.1 on Manjaro. I really don’t know what else info to provide, so please mention if anything is required.

like image 646
Anubhav Das Avatar asked Feb 07 '18 22:02

Anubhav Das


2 Answers

I had the same problem on Debian Buster. Installing the Debian package libncurses5 solved it for me:

$ sudo apt install libncurses5
like image 57
chkas Avatar answered Nov 10 '22 20:11

chkas


ln -s /usr/lib/libncursesw.so.6 /usr/lib/libtinfo.so.5

like image 7
Samir Al-Shaar Avatar answered Nov 10 '22 21:11

Samir Al-Shaar