I think lein runs 'deps' with the 'repl' task, but just in case you may also want to include a 'lein deps' in step 3:
3. Get a repl to play around with: cd first-time lein deps lein repl On Mon, Jun 20, 2011 at 2:17 AM, Mark Rathwell <mark.rathw...@gmail.com>wrote: > > Agreed, you should definitely start with lein. If you have ~/bin on your > path (and curl): > > 1. Get lein: > > curl -L https://github.com/technomancy/leiningen/raw/stable/bin/lein > > ~/lein > chmod a+x ~/lein > > 2. Create a new project with lein (in current working directory) > lein new first-time > > 3. Get a repl to play around with: > > cd first-time > lein repl > > 4. To play with and run code, first modify project.clj to look like this > (add the :main key): > > (defproject first-time "1.0.0-SNAPSHOT" > :description "FIXME: write description" > :dependencies [[org.clojure/clojure "1.2.1"]] > :main first-time.core) > > 5. Then, add a -main function to core.clj (which will be in > src/first_time/core.clj from the project root directory), so that core.clj > looks like this: > > (ns first-time.core) > > (defn -main [] > (println "hello" "world")) > > 6. Now, to run the code (from anywhere in the project root directory or > below): > > lein run > > 7. Now, play around with Clojure. Then, worry about finding an editor that > you like that has paren matching, proper indenting, etc. > > - Mark > > > > > > > On Mon, Jun 20, 2011 at 12:26 AM, Sean Corfield <seancorfi...@gmail.com>wrote: > >> On Sun, Jun 19, 2011 at 5:18 PM, Peter Tabatt <ptab...@gmail.com> wrote: >> > Hey guys, I downloaded the clojure file from github, unzipped it and >> > can't go any further. Any ideas? >> >> I strongly recommend starting with Leiningen instead of the raw >> Clojure JAR files. >> >> https://github.com/technomancy/leiningen >> >> If you already have a ~/bin folder, download the lein script per the >> installation instructions and put it in that folder so it's on your >> path. Make it executable. >> >> Leiningen handles project structure, dependencies and the REPL. It's a >> lot easier than trying to deal with JARs and the classpath directly. >> >> I use a Mac and I'm happy to screen share with you and get you up and >> running. I'm seancorfield on AIM and seancorfi...@gmail.com on Gtalk >> and I use iChat. I'll be happy to talk about IDE options on the Mac >> too, once I've got a sense of your background and what you're used >> to... >> -- >> Sean A Corfield -- (904) 302-SEAN >> An Architect's View -- http://corfield.org/ >> World Singles, LLC. -- http://worldsingles.com/ >> Railo Technologies, Inc. -- http://www.getrailo.com/ >> >> "Perfection is the enemy of the good." >> -- Gustave Flaubert, French realist novelist (1821-1880) >> >> -- >> 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 >> > > -- 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