I went to this page
this page and grabbed the "Latest build 1.2.x", unpacked it in my ~/bin (where lein is, and also on my machine's PATH), then went to ../script and tried to run ./install. This gave me
./install: 4: cd: can't cd to modules
./install: 6: cd: can't cd to incanter-core
find: ‘src’: No such file or directory
Warning: specified :main without including it in :aot.
Implicit AOT of :main will be removed in Leiningen 3.0.0.
If you only need AOT for your uberjar, consider adding :aot :all into your
:uberjar profile instead.
Compiling incanter.main
Created /home/hercynian/bin/incanter/target/incanter-1.2.3-SNAPSHOT.jar
Wrote /home/hercynian/bin/incanter/pom.xml
. . . and lots more error-looking stuff. Then trying ./repl gives me
Error: Could not find or load main class jline.ConsoleRunner
I'm totally lost at this point. However following
this in a console's lein repl seemed to work. I'm trying to follow
this Clojure tutorial, which is Emacs/cider based. I went into my first project's directory (clojure-noob) and changed the project.clj, guessing which version I needed:
(defproject clojure-noob "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:license {:name "Eclipse Public License"
:dependencies [[org.clojure/clojure "1.8.0"][incanter "1.9.1"]]
:main ^:skip-aot clojure-noob.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})
then I did
lein deps
. . . which seemed to download(?) a ton of stuff (to where I don't know)
Retrieving incanter/incanter/1.9.1/incanter-1.9.1.pom from clojars
Retrieving incanter/incanter-core/1.9.1/incanter-core-1.9.1.pom from clojars
Retrieving org/clojure/math.combinatorics/0.1.2/math.combinatorics-0.1.2.pom from central
Retrieving net/mikera/vectorz-clj/0.44.1/vectorz-clj-0.44.1.pom from clojars
Retrieving net/mikera/clojure-pom/0.6.0/clojure-pom-0.6.0.pom from clojars
Retrieving net/mikera/mikera-pom/0.6.0/mikera-pom-0.6.0.pom from central
Retrieving org/sonatype/oss/oss-parent/9/oss-parent-9.pom from central
etc.
Then, starting a lein repl, the example worked. I'm guessing this way uses something across the Internet (not my ~/bin/incater download) from Clojars? Again, I'd like to do incanter things inside of my Emacs cider repl . . . and I'd like to understand what I'm doing. . . if someone could please give me some background, too.
Thanks,
L Bottorff