I noticed that there is a package repo for Clojure, so I tried
sudo apt-get install clojure
However, the install failed, it looks like there is a java dependency missing.
I have java installed correctly on my machine: javac -version
results 1.6.0_26.
In any case, I find leiningan is always an easy way to go, but thought I would try apt-get to see if it was working. Any thoughts on this error message?
The following packages have unmet dependencies:
clojure : Depends: libasm3-java but it is not going to be installed
To summarize the comments:
Yes, apt-get works –
... BUT it it is not the preferred way to install Clojure.
So ... whats the "right" way to install Clojure ?
Leiningen remains the up-to-date, conventional way to rapidly get a Clojure installation up and running.
The steps are as follows :
/usr/local/bin
sudo chmod +x /usr/local/bin/lein
.Make sure you have Java installed first, of course.
These steps will install Clojure on any platform with the latest version.