Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing clojure on MacOS

I hope you can help me.

I am taking a class on Artificial Intelligence and I'm required to install Clojure on my laptop. I have a macbook pro and I am having a tough time trying to make sure I have installed everything correctly, and is Terminal the only environment I can work on.

  1. I downloaded Java JDK, also the patchwork for Java to work on El Capitan from the Apple website, and finally the Clojure pack from clojure.org's site.

  2. Are we supposed to work from our terminal or is there an environment like Xamarin studio that I should work from.

Our instructor only had the information for windows laptops not mac's or Linux's. So we're struggling to find a solution.

like image 357
Juan V Avatar asked Mar 14 '23 12:03

Juan V


2 Answers

For #1, Leiningen is the de-facto build tool in the clojure world. It is really easy to install. Check out the instructions right on the home page. Once you have that installed, the easiest and fastest way to get going is to fire up the lein repl with:

lein repl

This gives a clojure REPL where you can start to try out clojure.

For #2, If you are doing school work, I would recommend the non-commercial license version of cursiveclojure as an IDE. lighttable in another good option.

like image 20
leeor Avatar answered Mar 19 '23 21:03

leeor


You can install Leiningen with brew like this:

brew install leiningen

And then learn how to use it here: Leiningen Tutorial

like image 190
Ulises Avatar answered Mar 19 '23 20:03

Ulises