๊ธ€ ์ž‘์„ฑ์ž: ์ด์ง€์›๐ŸŒฉ๏ธ

์„ค์น˜ ํ™˜๊ฒฝ

Linux์šฉ Windows ํ•˜์œ„ ์‹œ์Šคํ…œ
- ubuntu0.18.04.1-b12

์„ค์น˜ํ•  ํ”„๋กœ๊ทธ๋žจ

Kotlin Compiler

OpenJDK Install

Java๊ฐ€ ๊น”๋ ค์žˆ์ง€ ์•Š๋‹ค๋Š” ์ „์ œ๋กœ ์‹œ์ž‘ํ•œ๋‹ค. JDK๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•˜๋Š”๋ฐ, ๋‚˜๋Š” OpenJDK๋ฅผ ์„ค์น˜ํ–ˆ๋‹ค.

$ sudo apt-get install openjdk-8-jre

์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์ •์ƒ์ ์œผ๋กœ ์„ค์น˜๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.

$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

Kotlin Compiler Install

Kotlin Compiler๋Š” sdkman์„ ์ด์šฉํ•ด์„œ ์„ค์น˜ํ•œ๋‹ค. ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์„ค์น˜ํ•œ๋‹ค.

$ curl -s https://get.sdkman.io | bash

sdkman์ด ์„ค์น˜๊ฐ€ ๋˜์ง€ ์•Š๋Š”๋‹ค๋ฉด, unzip๊ณผ zip์ด ์„ค์น˜๋˜์žˆ์ง€ ์•Š์•„์„œ ์ผ ์ˆ˜๋„ ์žˆ๋‹ค. ๋‹ค์Œ ๋ช…๋ น์–ด๋“ค์„ ํ†ตํ•ด unzip๊ณผ zip์„ ์„ค์น˜ ํ›„์— ๋‹ค์‹œ ์‹œ๋„ํ•œ๋‹ค.

$ sudo apt-get install unzip -y
$ sudo apt-get install zip -y

sdkman์ด ์„ค์น˜๋˜์—ˆ๋‹ค๋ฉด Kotlin Compiler๋ฅผ ์„ค์น˜ํ•œ๋‹ค. ๊ทธ ์ „์— ๋จผ์ € ํ„ฐ๋ฏธ๋„์„ ์žฌ์‹คํ–‰ํ•˜๊ณ , ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•œ๋‹ค.

$ sdk install kotlin

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์„ค์น˜๋œ Kotlin ๋ฒ„์ „์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

$ kotlin -version
Kotlin version 1.3.21-release-158 (JRE 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
๋ฐ˜์‘ํ˜•