Saturday, December 15, 2018

Install Kotlin Command Line Compiler on Raspberry Pi/Raspbian

Every release of Kotlin ships with a standalone version of the compiler. We can download it from GitHub Releases. The latest release is 1.3.11. This video show how to download and install Kotlin  Command Line Compiler on Raspberry Pi/Raspbian, and also create a Hello World using the command line compiler.


Tested hardware: Raspberry Pi 3 B+
OS: Raspbian Stretch with desktop and recommended software 2018-11-13

To download the latest standalone compiler from GitHub:
- Browser to http://kotlinlang.org/.
- Click LEARN on top.
- Select the Tutorials tab on top.
- Select Getting Started -> Working with the Command Line Compiler on the left.
- There should be a section of "Downloading the compile", with a download link to the latest release of Kotlin.

- Download and extract the file, in my case I extract to my ~/kotlinc/ directory.
- Add the path by enter the command in Terminal:
$ export PATH=~/kotlinc/bin:$PATH




No comments: