Hello--
Heard interesting things about clojure, thought I'd play with it, so I
downloaded the clojure-1.8.0 zip file,
exploded it, and tried to build it with ant... all this on my ubuntu 16.04
workstation.
I discovered my java installation is a bit incomplete for this... I
installed the openjdk-8-jdk and openjdk-8-jdk-headless and ant packages.
I had to update my JAVA_HOME :
declare -x JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
and:
murf@parse1:~/Downloads/clojure-1.8.0$ ant
Buildfile: /home/murf/Downloads/clojure-1.8.0/build.xml
clean:
[delete] Deleting directory /home/murf/Downloads/clojure-1.8.0/target
init:
[mkdir] Created dir: /home/murf/Downloads/clojure-1.8.0/target/classes
[mkdir] Created dir:
/home/murf/Downloads/clojure-1.8.0/target/classes/clojure
compile-java:
[javac] Compiling 167 source files to
/home/murf/Downloads/clojure-1.8.0/target/classes
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.6
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
compile-clojure:
[java] Compiling clojure.core to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.core.protocols to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.core.server to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.main to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.set to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.edn to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.xml to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.zip to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.inspector to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.walk to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.stacktrace to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.template to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.test to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.test.tap to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.test.junit to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.pprint to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.java.io to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.repl to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.java.browse to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.java.javadoc to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.java.shell to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.java.browse-ui to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.string to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.data to
/home/murf/Downloads/clojure-1.8.0/target/classes
[java] Compiling clojure.reflect to
/home/murf/Downloads/clojure-1.8.0/target/classes
build:
compile-tests:
[mkdir] Created dir:
/home/murf/Downloads/clojure-1.8.0/target/test-classes
[javac] Compiling 3 source files to
/home/murf/Downloads/clojure-1.8.0/target/test-classes
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.6
[javac] 1 warning
[echo] Direct linking = true
[java] Compiling clojure.test-clojure.protocols.examples to
/home/murf/Downloads/clojure-1.8.0/target/test-classes
[java] Compiling clojure.test-clojure.genclass.examples to
/home/murf/Downloads/clojure-1.8.0/target/test-classes
[java] Compiling clojure.test-clojure.compilation.load-ns to
/home/murf/Downloads/clojure-1.8.0/target/test-classes
[java] Compiling clojure.test-clojure.annotations to
/home/murf/Downloads/clojure-1.8.0/target/test-classes
test-example:
[java] Exception in thread "main" java.io.FileNotFoundException: Could
not locate clojure/tools/namespace/find__init.class or
clojure/tools/namespace/find.clj on classpath.,
compiling:(/home/murf/Downloads/clojure-1.8.0/src/script/run_test.clj:2:1)
[java] at clojure.lang.Compiler.load(Compiler.java:7391)
[java] at clojure.lang.Compiler.loadFile(Compiler.java:7317)
[java] at clojure.main$load_script.invokeStatic(main.clj:275)
[java] at clojure.main$script_opt.invokeStatic(main.clj:335)
[java] at clojure.main$script_opt.invoke(main.clj:330)
[java] at clojure.main$main.invokeStatic(main.clj:421)
[java] at clojure.main$main.doInvoke(main.clj:384)
[java] at clojure.lang.RestFn.invoke(RestFn.java:408)
[java] at clojure.lang.Var.invoke(Var.java:379)
[java] at clojure.lang.AFn.applyToHelper(AFn.java:154)
[java] at clojure.lang.Var.applyTo(Var.java:700)
[java] at clojure.main.main(main.java:37)
[java] Caused by: java.io.FileNotFoundException: Could not locate
clojure/tools/namespace/find__init.class or
clojure/tools/namespace/find.clj on classpath.
[java] at clojure.lang.RT.load(RT.java:456)
[java] at clojure.lang.RT.load(RT.java:419)
[java] at clojure.core$load$fn__5677.invoke(core.clj:5893)
[java] at clojure.core$load.invokeStatic(core.clj:5892)
[java] at clojure.core$load.doInvoke(core.clj:5876)
[java] at clojure.lang.RestFn.invoke(RestFn.java:408)
[java] at clojure.core$load_one.invokeStatic(core.clj:5697)
[java] at clojure.core$load_one.invoke(core.clj:5692)
[java] at clojure.core$load_lib$fn__5626.invoke(core.clj:5737)
[java] at clojure.core$load_lib.invokeStatic(core.clj:5736)
[java] at clojure.core$load_lib.doInvoke(core.clj:5717)
[java] at clojure.lang.RestFn.applyTo(RestFn.java:142)
[java] at clojure.core$apply.invokeStatic(core.clj:648)
[java] at clojure.core$load_libs.invokeStatic(core.clj:5774)
[java] at clojure.core$load_libs.doInvoke(core.clj:5758)
[java] at clojure.lang.RestFn.applyTo(RestFn.java:137)
[java] at clojure.core$apply.invokeStatic(core.clj:648)
[java] at clojure.core$require.invokeStatic(core.clj:5796)
[java] at user$eval3.invokeStatic(run_test.clj:2)
[java] at user$eval3.invoke(run_test.clj:2)
[java] at clojure.lang.Compiler.eval(Compiler.java:6927)
[java] at clojure.lang.Compiler.load(Compiler.java:7379)
[java] ... 11 more
BUILD FAILED
/home/murf/Downloads/clojure-1.8.0/build.xml:113: Java returned: 1
Total time: 17 seconds
What did I miss?
OH- ONE OTHER THING:
the readme says:
To build locally with Ant:
One-time setup: ./antsetup.sh
To build: ant
I noted that the zip file doesn't seem to contain the file antsetup.sh; is
this a bug
in packaging the release, or in the readme?
murf
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.