英和訓練

著作権は原文に属します

Guides - Getting Started 始め方

Welcome to Clojure! Clojureにようこそ!

Check out Learn Clojure, Resources, or Books for learning the language! Clojureを学ぶにあたっては、Learn Clojure、Resouces、Booksが便利かもしれません。

Clojure installler and CLI tools ClojureインストーラCLIツール達

Clojure provides command line tools that can be used to start a Clojure repl, use Clojure and Java libraries, and start Clojure programs. Clojureコマンドラインツール群を提供しています。それらを使って、Clojure replの起動、ClojureおよびJavaのライブラリの利用、Clojureプログラムの起動ができます。

Installation on Mac via brew brew経由でのMacにおけるインストール

Install the command line tools with brew: brewを使って次のようにコマンドラインツールをインストールしましょう。

brew install clojure

if you've already installed, you can upgrade to the latest release with: すでにインストールされているなら、次の操作で最新版リリースへと更新できます。

brew upgrade clojure

Installation on Linux

  1. Ensure that the following dependencies are installed: bash, curl, rlwrap, and Java. これらの依存関係がインストール済みであることを確かにしてください。
  2. Use the linux-install script to downlowad and run the install, which will create /usr/locall/bin/clj, /usr/local/bin/clojure, and /usr/local/lib/clojure: 次のようにLinux用のインストールスクリプトを実行することで、左記3箇所にインストールされます。
curl -O https://download.clojure.org/install/linux-install-1.9.0.397.sh
chmod +x linux-install-1.9.0.397.sh
sudo ./linux-install-1.9.0.397.sh

Platform installers (apt-get, etc) will be available in the future. 将来的には(apt-get等の)プラットフォームのインストーラが使えるようになります。

Installation on Windows Windowsでのインストール

Not yet available - see Leiningen or Boot instead. 現在まだ提供されていません。LeiningenかBootをご参考ください。

Other ways to run Clojure Clojureを実行するその他の方法

Local build ローカルでのビルド

Download and build Clojure from source (requires Git, Java, Maven): 次のようにソースからClojureをビルドします。(GitとJavaMavenが必要です。)

git clone https://github.com/clojure/clojure.git
cd clojure
mvn -Plocal -Dmaven.test.skip=true package

Then start the REPL with the local jar: そうしたら、ローカルにあるjarを用いてREPLを起動します。

java -jar clojure.jar

Try Clojure online オンラインでClojureを試す

インタラクティブに探検できるブラウザベースのClojureのreplを提供しているものとして、repl.itがあります。

Build tools ビルドツール達

Build tools provide a range of capabilities for building, running, and deploying Clojure libraries and applications. Clojureのライブラリやアプリケーションをビルド、実行、デプロイできる様々な機能を持ったビルドツールが存在します。The two most popular Clojure build tools are Leiningen and Boot. Clojureのビルドツールとして最も人気があるのは、LeiningenとBootです。

Original author: Alex Miller

原文: https://clojure.org/guides/getting_started