will appreciate any suggestion what may have gone ...
# kotlin-native
b
will appreciate any suggestion what may have gone wrong
Copy code
plugins {
    kotlin("multiplatform") version ("1.3.61")
}

repositories {
    maven("<https://dl.bintray.com/kotlin/kotlin-eap>")
    mavenCentral()
}

kotlin {
    linuxX64("linux") {
        binaries {
            executable {
                entryPoint = "sample.main"
            }
        }
    }
    sourceSets {
        val linuxMain by getting {}
        val linuxTest by getting {}
    }
}
it's probably worth mentioning that kotlin isn't recognized
I've already tried removing ~/.konan/dependencies because they may have been corrupted
also there's that SO question https://stackoverflow.com/questions/36365752/make-error-127-when-running-trying-to-compile-code
Error 127
means one of two things:
file not found: the path you're using is incorrect. double check that the program is actually in your
$PATH
, or in this case, the relative path is correct -- remember that the current working directory for a random terminal might not be the same for the IDE you're using. it might be better to just use an absolute path instead.
ldso is not found: you're using a pre-compiled binary and it wants an interpreter that isn't on your system. maybe you're using an x86_64 (64-bit) distro, but the prebuilt is for x86 (32-bit). you can determine whether this is the answer by opening a terminal and attempting to execute it directly. or by running
file -L
on
/bin/sh
(to get your default/native format) and on the compiler itself (to see what format it is).
but I don't see there how can I solve my problem
wait I think I see now lol
libtinfo.so.5: cannot open shared object file: No such file or directory
a
Hi, you have found a solution, but I guess if you are using Arch Linux, you already have installed libtinfo.so.6. You can link the libtinfo.so.6 to libtinfo.so.5 and it works, no installing of an AUR package required.