4 ms·
Thanks to Leiningen[1], getting started with Clojure is super simple. It doesn't get much easier than pulling down the master `lein` script (or `lein.bat` for
by michaelsbradley 14y ago
Thanks to Leiningen[1], getting started with Clojure is super simple.
It doesn't get much easier than pulling down the master `lein` script (or `lein.bat` for Windows) with wget/curl and setting it up on your PATH as an executable. This is similar to rvm[2], nvm[3], perlbrew[4], et al.
You'll need to have Java installed before proceeding to the next step.
Once you've done that, you can run `lein repl` in your shell -- Leiningen will bootstrap itself when it's run for the first time, and when it's done you'll be presented with a Clojure REPL. Now you're ready to start exploring and learning:
http://clojure.github.com/clojure/ http://clojure.github.com/clojure/
http://clojuredocs.org/ http://clojuredocs.org/
http://clojure-doc.org/ http://clojure-doc.org/
Also, please join the friendly community in #clojure on irc.freenode.net[5]. You'll find folks in there nearly 24/7 who are willing to answer questions you may have as you learn your way around. The discussion group[6] is also a great resource.
[1] http://leiningen.org/#install http://leiningen.org/#install
[2] https://rvm.io/ https://rvm.io/
[3] https://github.com/creationix/nvm https://github.com/creationix/nvm
[4] http://perlbrew.pl/ http://perlbrew.pl/
[5] http://webchat.freenode.net/?channels=clojure http://webchat.freenode.net/?channels=clojure
[6] http://groups.google.com/group/clojure http://groups.google.com/group/clojure
- chc 14y agoI wanted to get Clojure on my secondary machine to do a little light fiddling, but as it turns out, Windows doesn't include wget or curl, and lein.bat requires those. So I have to download something that requires me to download something so I can download something that will let me install the thing I wanted in the first place. I think it could be a bit easier.
- technomancy 14y agoIt certainly could be better, but none of the maintainers know Windows, and no Windows users have contributed improvements.
- chc 14y agoWhich is fair. I don't use Windows a lot myself — this is basically the "League of Legends and Sims 3 machine." I was just pointing it out because lein.bat was mentioned, and I found it kind of surprising given how easy Leiningen is on other platforms.
- jurjenh 14y agowhich makes me wonder if there is a simple java package to do that - probably not much to write a simple curl / wget for java so that on any machine with a JVM you can just lein your way to clojure...
- michaelsbradley 14y agoI wonder if java.net.HttpURLConnection would be enough?
- ogrim 14y agoI am using Windows more these days, because of work. I will start documenting what I have done to make Clojure and leiningen work properly, and see what can be contributed.