Windows
scoop
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
> scoop install git
> scoop bucket add java
> scoop bucket add extras
> scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure
> scoop install temurin-lts-jdk
> scoop install clj-deps
> scoop update clj-deps
Ubuntu
sudo apt install -y wget apt-transport-https
sudo mkdir -p /etc/apt/keyrings
sudo wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc
sudo echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
sudo apt update # update if you haven't already
sudo apt search temurin
sudo apt install -y ์ํ๋_๋ฒ์ _์ ํ
| sources.list |
ํ์ผ | /etc/apt/sources.list |
๋๋ ํ ๋ฆฌ | /etc/apt/sources.list.d/ |
- Eclipse Temurin์ Adoptium์์ ์ ๊ณตํ๋ OpenJDK ๋ฐฐํฌํ์ ์ด๋ฆ
- adoptium
- Oracle OpenJDK์ ํธํ๋๋ ์๋ฐ ๊ฐ๋ฐ ํคํธ(Java Development Kit, JDK)๋ฅผ ์ ๊ณต
- ์ด์ ์ AdoptOpenJDK๋ก ์๋ ค์ ธ ์์์
| OpenJ9 | HotSpot |
JVM | IBM์์ ๊ฐ๋ฐํ JVM | JVM์ ์ค๋ซ๋์ ์๋ฐ์ ๊ธฐ๋ณธ JVM |
GC | Eclipse OpenJ9 | ์ฃผ๋ก ๊ธฐ๋ณธ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๋ฐฉ์ |
License | Eclipse Public License (EPL) | Oracle Binary Code License (BCL) |
| GNU General Public License (GPL) | GNU General Public License (GPL) |
| | GNU General Public License with Classpath Exception (GPL+CE) - JDK only |
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/iv/.bashrc
$ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
$ sudo apt-get install build-essential
$ brew install gcc
$ brew install clojure/tools/clojure
$ clj
Clojure 1.11.1
user=>
macOs
$ brew install clojure/tools/clojure # ์ค์น์
$ brew update clojure/tools/clojure # ์
๋ฐ์ดํธ์
$ clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as new
$ clojure -Tnew app :name myusername/mynewapp
$ cd mynewapp
$ clj -X:run-x
Hello, Clojure!