Thanks for your response, Brenton.

2012/1/25 Brenton <bashw...@gmail.com>:
> With the recent update, we no longer have a script/cljs-repl.
>
> You would now use:
>
> lein repl
> (go)
That works on OS X.

On Ubuntu 11.04 - with a clean system (no Leiningen / Clojure installed), I do
1) Install Leiningen, lein works
lein -v
raju@titan:~/test$ lein -v
Leiningen 1.6.2 on Java 1.6.0_30 Java HotSpot(TM) 64-Bit Server VM

2) Checkout ClojureScript One
raju@titan:~/test$ git clone https://github.com/brentonashworth/one.git
Cloning into one...
remote: Counting objects: 1574, done.
remote: Compressing objects: 100% (658/658), done.
remote: Total 1574 (delta 738), reused 1532 (delta 696)
Receiving objects: 100% (1574/1574), 940.66 KiB | 224 KiB/s, done.
Resolving deltas: 100% (738/738), done.
raju@titan:~/test$ cd one
raju@titan:~/test/one$ lein bootstrap
Copying 36 files to /home/raju/test/one/lib
Copying 10 files to /home/raju/test/one/lib/dev
Setting up dependency for
[https://github.com/clojure/clojurescript.git
886d8dc81812962d30a741d6d05ce9d90975160f]
Running git checkout  886d8dc81812962d30a741d6d05ce9d90975160f  in
.lein-git-deps/clojurescript
Setting up dependency for  [https://github.com/levand/domina.git
8933b2d12c44832c9bfaecf457a1bc5db251a774]
Running git checkout  8933b2d12c44832c9bfaecf457a1bc5db251a774  in
.lein-git-deps/domina

3) Try to launch the repl, but that fails. Seems to be a classpath
issue, looks like Leiningen is not finding the Clojure JAR file. Any
idea what this might be?
raju@titan:~/test/one$ lein repl
Exception in thread "main" java.lang.RuntimeException:
java.lang.NoSuchMethodError:
clojure.lang.KeywordLookupSite.<init>(ILclojure/lang/Keyword;)V
        at clojure.lang.Util.runtimeException(Util.java:165)
        at clojure.lang.Compiler.eval(Compiler.java:6476)
        at clojure.lang.Compiler.eval(Compiler.java:6431)
        at clojure.core$eval.invoke(core.clj:2795)
        at clojure.main$eval_opt.invoke(main.clj:296)
        at clojure.main$initialize.invoke(main.clj:315)
        at clojure.main$script_opt.invoke(main.clj:339)
        at clojure.main$main.doInvoke(main.clj:426)
        at clojure.lang.RestFn.invoke(RestFn.java:457)
        at clojure.lang.Var.invoke(Var.java:413)
        at clojure.lang.AFn.applyToHelper(AFn.java:172)
        at clojure.lang.Var.applyTo(Var.java:518)
        at clojure.main.main(main.java:37)
Caused by: java.lang.NoSuchMethodError:
clojure.lang.KeywordLookupSite.<init>(ILclojure/lang/Keyword;)V

4) Confirm that lein works correctly
raju@titan:~/test$ lein new hello-world
Created new project in: /home/raju/test/hello-world
Look over project.clj and start coding in hello_world/core.clj
raju@titan:~/test$ cd hello-world/
raju@titan:~/test/hello-world$ lein deps
Copying 1 file to /home/raju/test/hello-world/lib
raju@titan:~/test/hello-world$ lein repl
REPL started; server listening on localhost port 53851
user=>

Has anyone else experienced similar problems on Ubuntu with ClojureScript One?

- Raju

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to