Reputation: 11
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
Reputation: 73
Have you install right kscript? Check here https://github.com/holgerbrandl/kscript in base your system OS
Upvotes: 1