https://kotlinlang.org logo
#announcements
Title
# announcements
h

havok

07/31/2017, 1:40 PM
I am trying to install Kotlin onn my ubuntu 16.04 using the instructions here https://www.cyberciti.biz/faq/how-to-install-kotlin-programming-language-on-ubuntudebian-linux/ I get the following: Stop! The archive was corrupt and has been removed! Please try installing again. Any suggestions
g

gildor

07/31/2017, 2:11 PM
The archive was corrupt and has been removed
I saw this error about a half year ago with one of Kotlin versions installed from sdkman. I think this is a corrupted distribution of Kotlin in sdkman distro. Which version do you install? 1.1.3-2 works fine for me
@havok so not sure, but it’s some sdkman issue, maybe if you install. If you just want to play with kotlin or build some real app I highly recommend you to install Idea and create project there (just Idea project or Gradle project with Kotlin support,) It’s just easier and more productive than command line compiler
h

havok

07/31/2017, 3:35 PM
I saw others have this problem as well, but nobody posted a resolution
g

gildor

07/31/2017, 3:35 PM
I think it’s a broken distibution archive in sdkman.
Did you try to install particular version?
Copy code
sdk install kotlin 1.1.3
h

havok

07/31/2017, 3:36 PM
I want to be able to play with it to see if it is worth my time using (not a java fan, so this looked better). I travel a lot, so want a local copy on my system, like I do with Go, Rust, Python, Clojure and elixir
let me try that
g

gildor

07/31/2017, 3:44 PM
but with Gradle you will have local Kotlin distribution and be able to use it from command line, also you will have dependency management. Just because it will be really tedious to pass all source files to command line compiler manually If you compare with Rust it’s like Cargo or pip for Python. And after all you don’t need to download and install Kotlin compiler and even Gradle, all you need is just Gradle config and source files BTW pure Kotlin Idea project (without gradle) works offline without problems too, you can create it without internet (Kotlin plugin in Idea have bundled compiler)
This is a very basic but working example of gradle project with Kotlin: https://github.com/gildor/kotlin-starter You can use there any dependencies and add new files with code without additional configuration. The entry point of this project is main function in file src/main/kotlin/Main.kt You can run it from console as well as from Idea or Eclipse
h

havok

07/31/2017, 5:13 PM
$ sdk install kotlin 1.1.3 Downloading: kotlin 1.1.3 In progress... ######################################################################## 100.0% End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /home/userx/.sdkman/archives/kotlin-1.1.3.zip or /home/userx/.sdkman/archives/kotlin-1.1.3.zip.zip, and cannot find /home/userx/.sdkman/archives/kotlin-1.1.3.zip.ZIP, period. Stop! The archive was corrupt and has been removed! Please try installing again.
g

gildor

07/31/2017, 5:25 PM
Looks like sdkman just broken, maybe cannot access to repo, maybe some proxy error. Just download and unpack manually https://github.com/JetBrains/kotlin/releases/download/v1.1.3-2/kotlin-compiler-1.1.3-2.zip
i

ilya.gorbunov

07/31/2017, 6:31 PM
sdkman downloads kotlin binary from github and today there was github service outage, so the archive might be downloaded incompletely.
h

havok

08/01/2017, 1:40 PM
Thanks to both of you, I think it had more to do with github outage. I tried it today and it worked fine
3 Views