Clojure 系列-搭建Clojure开发环境

闻人献
2023-12-01

根据不同的操作系统选择安装

Linux

curl -O https://download.clojure.org/install/linux-install-1.10.2.774.sh
chmod +x linux-install-1.10.2.774.sh
sudo ./linux-install-1.10.2.774.sh

安装程序将创建命令
/usr/local/bin/clojure, /usr/local/bin/clj wrapper
和 /usr/local/lib/clojure 目录.

Windows

推荐使用以管理员运行Powershell,然后运行下面命令

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
iwr -useb get.scoop.sh | iex

Initializing...
Downloading scoop...
Extracting...
Creating shim...
Downloading main bucket...
Extracting...
Adding ~\scoop\shims to your path.
'lastupdate' has been set to '2021-04-20T09:19:22.8505824+08:00'
Scoop was installed successfully!
Type 'scoop help' for instructions.

MacOS

推荐使用Homebrew安装

brew install clojure/tools/clojure

检查CLI工具版本

clojure -Sdescribe 

确认 Clojure 命令行界面工具是否已经安装成功,以及安装的版本。

 类似资料: