我正在尝试安装 Pulsar。我有 lein 版本
idf@idf-Satellite-C55t-A ~/Documents/clojure/pulsar $ lein version
Leiningen 2.5.0 on Java 1.7.0_72 Java HotSpot(TM) 64-Bit Server VM
idf@idf-Satellite-C55t-A ~/Documents/clojure/pulsar $
我设置了 JAVA_HOME
idf@idf-Satellite-C55t-A ~/Documents/java/quasar $ echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle
idf@idf-Satellite-C55t-A ~/Documents/java/quasar $
当我在 git cloned 目录上执行 lein midje 时,我得到了一堆错误。不知道我做错了什么?我怀疑这与首先正确安装java Quasar有关,但我不确定。
idf@idf-Satellite-C55t-A ~/Documents/clojure/pulsar $ lein midje
...
above here no errors
QUASAR WARNING: Assertions enabled. This may harm performance.
Reflection warning, midje/util/ecosystem.clj:40:12 - call to java.io.File ctor can't be resolved.
Reflection warning, midje/clojure/core.clj:86:17 - reference to field hasRoot can't be resolved.
Reflection warning, midje/util/pile.clj:109:9 - call to contains can't be resolved.
Reflection warning, midje/config.clj:19:32 - call to contains can't be resolved.
Reflection warning, midje/emission/clojure_test_facade.clj:26:19 - reference to field toString can't be resolved.
Reflection warning, midje/parsing/util/file_position.clj:59:5 - reference to field getFileName can't be resolved.
Reflection warning, midje/data/metaconstant.clj:43:5 - reference to field getNamespace can't be resolved.
Reflection warning, midje/checking/checkers/chatty.clj:60:20 - call to java.lang.Error ctor can't be resolved.
Reflection warning, midje/checking/checkers/simple.clj:85:24 - reference to field throwable can't be resolved.
Reflection warning, midje/data/compendium.clj:60:38 - call to indexOf can't be resolved.
Reflection warning, midje/util/scheduling.clj:10:5 - call to cancel can't be resolved.
Reflection warning, dynapath/defaults.clj:13:52 - reference to field getURLs can't be resolved.
Reflection warning, dynapath/defaults.clj:27:28 - call to addURL can't be resolved.
Reflection warning, dynapath/util.clj:30:22 - reference to field getParent can't be resolved.
Reflection warning, midje/util/bultitude.clj:62:17 - reference to field canRead can't be resolved.
Reflection warning, midje/util/bultitude.clj:193:22 - call to replaceAll can't be resolved.
Reflection warning, midje/util/bultitude.clj:194:22 - call to replaceAll can't be resolved.
Reflection warning, clj_time/core.clj:577:10 - reference to field getDayOfMonth can't be resolved.
Reflection warning, midje/data/project_state.clj:25:18 - reference to field getName can't be resolved.
Reflection warning, midje/data/project_state.clj:26:28 - reference to field getName can't be resolved.
Reflection warning, midje/data/project_state.clj:49:24 - reference to field getPath can't be resolved.
Reflection warning, midje/data/project_state.clj:73:3 - reference to field lastModified can't be resolved.
Reflection warning, midje/repl.clj:103:12 - call to java.lang.Error ctor can't be resolved.
Reflection warning, midje/repl.clj:388:12 - reference to field getMessage can't be resolved.
Reflection warning, midje/repl.clj:391:50 - reference to field getMessage can't be resolved.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Reflection warning, co/paralleluniverse/pulsar/actors.clj:737:7 - call to co.paralleluniverse.actors.behaviors.Supervisor$ChildSpec ctor can't be resolved.
Exception in Fiber "fiber-10000001" java.lang.Exception: my exception
at co.paralleluniverse.pulsar.actors_test$eval9288$fn__9289$fn__9290$fn__9291$fn__9294.invoke(actors_test.clj:27)
at co.paralleluniverse.pulsar.InstrumentedIFn.invoke(InstrumentedIFn.java:32)
at co.paralleluniverse.pulsar.ClojureHelper.suspendableInvoke(ClojureHelper.java:183)
at co.paralleluniverse.pulsar.ClojureHelper$3.run(ClojureHelper.java:170)
at co.paralleluniverse.actors.PulsarActor.doRun(PulsarActor.java:90)
at co.paralleluniverse.actors.Actor.run0(Actor.java:667)
at co.paralleluniverse.actors.ActorRunner.run(ActorRunner.java:51)
at co.paralleluniverse.actors.Actor.run(Actor.java:236)
and more errors...
所以我下载了Quasar的git repo。首先使用 apt-get 安装系统 gradle,然后在 quasar 目录中运行 gradle。这给了我一个不同的错误:
idf@idf-Satellite-C55t-A ~/Documents/java/quasar $ gradle
sonatype username or password not set
Download http://repo1.maven.org/maven2/ch/raffael/pegdown-doclet/pegdown-doclet/1.1.1/pegdown-doclet-1.1.1.pom
Download http://repo1.maven.org/maven2/org/pegdown/pegdown/1.2.1/pegdown-1.2.1.pom
Download http://repo1.maven.org/maven2/net/sourceforge/plantuml/plantuml/7968/plantuml-7968.pom
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-java/1.1.4/parboiled-java-1.1.4.pom
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-core/1.1.4/parboiled-core-1.1.4.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm/4.1/asm-4.1.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-parent/4.1/asm-parent-4.1.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/4.1/asm-tree-4.1.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/4.1/asm-analysis-4.1.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-util/4.1/asm-util-4.1.pom
Download http://repo1.maven.org/maven2/ch/raffael/pegdown-doclet/pegdown-doclet/1.1.1/pegdown-doclet-1.1.1.jar
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-core/1.1.4/parboiled-core-1.1.4.jar
Download http://repo1.maven.org/maven2/org/ow2/asm/asm/4.1/asm-4.1.jar
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/4.1/asm-tree-4.1.jar
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/4.1/asm-analysis-4.1.jar
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-util/4.1/asm-util-4.1.jar
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-java/1.1.4/parboiled-java-1.1.4.jar
Download http://repo1.maven.org/maven2/org/pegdown/pegdown/1.2.1/pegdown-1.2.1.jar
FAILURE: Build failed with an exception.
* Where:
Build file '/home/idf/Documents/java/quasar/build.gradle' line: 185
* What went wrong:
A problem occurred evaluating root project 'quasar'.
> Could not resolve all dependencies for configuration ':quasar-actors:markdownDoclet'.
> Artifact 'com.google.guava:guava:13.0.1@jar' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 13.114 secs
idf@idf-Satellite-C55t-A ~/Documents/java/quasar $