因此,我去clojure.org/downloads,它说我可以通过leiningen获得clojure。大。我去leiningen.org,并认为我遵循指示。它说要得到他们的bash脚本并把它放在你的〜/ bin /中。使其可执行。做到了。什么?运行脚本?它没有说,但我做到了。这创建了一个.lein,我想它应该。怎么办?我现在如何安装clojure?这是clojure.org/downloads说:在Ubuntu上安装leiningen的clojure 13.04
Modify the dependencies and repositories sections of your Leiningen project.clj file, specifying the version of Clojure that you want:
; under dependencies, select the release of clojure
; (and optionally clojure-contrib) that you want
:dependencies [[org.clojure/clojure
"1.5.0-alpha5"]]
,但我不知道这意味着什么,因为我觉得没有“project.clj”文件的任何地方。 〜/ .lein/self-installs有一个怪物leiningen-2.1.3-standalone.jar文件,它可能不希望我对它进行黑客攻击。我现在应该怎么做?我怎么能在未来更好地告知自己?
我现在明白我下载的东西是lein本身,而不是安装脚本。所以,是的,'lein new my-first-project'跑了 - 并且运行'lein repl'似乎也做了某种下载... ...什么? clojure现在在我的系统上的某个地方? – 147pm
@ user78162 Clojure jar现在应该在你的Maven仓库中,通常是'〜/ .m2/org/clojure/...'。通常你不会直接使用Clojure jar,而是通过'lein'。如果你从'lein repl'得到提示,那么你就可以开始交互式地学习Clojure了。请参阅教程,了解如何构建。 –