What does this error mean? I.e. where shall start ...
# kotlin-native
v
What does this error mean? I.e. where shall start looking for the propblem's roots? Any hints?
🧵 2
Since I'm very new to Kotlin-native (just trying to launch sample project), I dunno if it's
llvm-lto
or
java
, that causes problem
k
That’s something in llvm (native) land. What does code look like?
v
Copy code
package sample

fun hello(): String = "Hello, Kotlin/Native!"

fun main(args: Array<String>) {
  println(hello())
}
I'm just trying to launch sample created by IDEA, upon a new project creation
I had a problem, when IDEA was downloading _Konan_'s files (if I'm not mistaken) -- ran out of disk space on
/home
, then I moved
~/.konan
to the
/another/disk/konan
and linked:
ln -s /another/disk/konan ~/.konan
. After that re-ran the project, but it did not start
o
Which host? Can you run the binary mentioned in error message manually?
v
Hmm, I can not. It does not find
libtinfo.so.5
, and the error code is the same (127), perhaps, I need those libraries in
PATH
, but I wonder, why IDEA did not set it automatically
It seems that my Konan dist has no
libtinfo
at all
o
yum install ncurses-compat-libs
v
I did, but I'm on Archlinux, I could not find something similar via
pacman -Ss ncurses
, so I've decided, that I already have those libraries in the system (turns out, not)
Huh, I have
But
libtinfo.so.6
and
libtinfo.so
as the link to the first one
Archlinux is so arch
Linked
*.so.5
to
*.so.6
. It works. Thanks
m
pacman -S ncurses5-compat-libs
👍 1