I’m trying to compile a kotlin project with jdk11 ...
# announcements
g
I’m trying to compile a kotlin project with jdk11 but I’m receiving this error:
Copy code
> Task :common:linkTestDebugExecutableNativeAndroidArm32 FAILED
/root/.konan/dependencies/clang-llvm-6.0.1-linux-x86-64/bin/llvm-lto: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
error: compilation failed: The /root/.konan/dependencies/clang-llvm-6.0.1-linux-x86-64/bin/llvm-lto command returned non-zero exit code: 127.
Does someone knows how to fix this? The library
libtinfo.so.5
is missing. It looks like this could be related with
ncurses
. Some people suggested to install this package
yum install ncurses-compat-libs
but I don’t know which package I should install when using debian.
d
Try using JDK 8 or Java 9.
If that doesn't work try #C3SGXARS6 🙂
g
With jdk8 it is working, but I was wondering to use the jdk11 to keep things updated.
It looks like I have the libtinfo.so.6 but not the libtinfo.so.5 one.
Although I don't know if jdk11 is explicitly unsupported. 🤷🏼
g
Ok, thanks 😃
Oh, it building with jdk11. After I installed the
libncurses5
in the docker container it worked 😃
d
Sweet!