147*_*7pm 10 clojure leiningen
所以我去了clojure.org/downloads,它说我可以通过leiningen获得clojure.大.我去leiningen.org认为我按照说明操作.它说要获取他们的bash脚本并把它放在你的〜/ bin /中.让它可执行.做到了.那么什么?运行脚本?它没有说,但我做到了.这会创建一个.lein,我认为应该这样做.怎么办?我现在如何安装clojure?这就是clojure.org/downloads所说的:
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"]]
Run Code Online (Sandbox Code Playgroud)
但我不明白这是什么意思,因为我找不到任何"project.clj"文件.〜/ .lein/self-installs有一个怪物leiningen-2.1.3-standalone.jar文件,可能不希望我黑客攻击它.我现在应该怎么做?我怎么能在将来更好地告知自己?
A. *_*ebb 11
此时lein应该在你的道路上.因此,键入lein或lein help在shell提示符下应该显示任务列表.
创建您的第一个项目
lein new my-first-project
cd my-first-project
Run Code Online (Sandbox Code Playgroud)
然后,您应该project.clj在该目录中看到一个.如果您希望使用与默认版本不同的Clojure版本,请编辑该文件中的依赖项.然后只需输入REPL,就可以下载并安装任何依赖项(包括Clojure).
lein repl
Run Code Online (Sandbox Code Playgroud)
作为您的上一个问题,我将在完成安装说明后立即按照leiningen网站上的教程进行操作.
https://github.com/technomancy/leiningen/blob/stable/doc/TUTORIAL.md