Kotlin error while loading shared libraries: libtinfo.so.5

Viewed 760

I followed Get started with Kotlin/Native using the command-line compiler, downloaded kotlin-native-linux-1.5.10.tar.gz and added its bin to the PATH of system. Now which kotlinc-native returns true value.

But when I try kotlinc-native hello.kt -o hello, get this error:

~/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

What is the problem and how I can solve that?

1 Answers

As a workaround, you can manually install libtinfo.so.5 to your system

e.g Linux distro package manager

sudo apt-get install libncurses5 
Related