gmgulla
gmgulla

Reputation: 11

Kscript: script compilation failed. What's the issue?

I can't execute a simple Kotlin script because of compilation failed due to an invalid argument.

This is my Kotlin script:

#!/usr/bin/env kscript 
println("Helloooo")

Then I've writter my very simple script, I've add executable permission to execute it: chmod u+x SomeScript.kts

This is the error:

$ ./SomeScript.kts
[kscript] [ERROR] compilation of './SomeScript.kts' failed
error: invalid argument: -d
info: use -help for more information

How can I fix it?

Upvotes: 1

Views: 399

Answers (1)

dommy1985
dommy1985

Reputation: 73

Have you install right kscript? Check here https://github.com/holgerbrandl/kscript in base your system OS

Upvotes: 1

Related Questions