在Github上运行clojure存储库

时间:2015-11-27 23:06:33

标签: git github clojure leiningen

我是Github的新手。我想从Github运行this tutorial repo。 我在我下载并解压缩zip文件的目录中lein run poly-timing-master/,我在终端中收到此错误:

No :main namespace specified in project.clj.

我正在进行正确的运行吗?

1 个答案:

答案 0 :(得分:2)

在shell /命令提示符下键入以下内容

git clone https://github.com/puredanger/poly-timing
cd poly-timing
lein deps
lein run

您应该看到以下内容

Compiling poly-timing.core
## Value-based dispatch

Benchmarking case 1st
WARNING: Final GC required 1.438013251625518 % of runtime
WARNING: Final GC required 13.265534855967589 % of runtime
Evaluation count : 26507544 in 6 samples of 4417924 calls.
             Execution time mean : 21.775064 ns
    Execution time std-deviation : 1.152629 ns
   Execution time lower quantile : 20.008462 ns ( 2.5%)
   Execution time upper quantile : 22.995363 ns (97.5%)
                   Overhead used : 1.940065 ns
...