I’m setting up a newly repurposed Mac for Exercism, and I had some extra steps to do to install clojure. Starting from Installing Clojure locally | Exercism's Docs
-
brew install went smoothly
$ brew install clojure/tools/clojure ... ==> Installing clojure from clojure/tools ==> ./install.sh /usr/local/Cellar/clojure/1.11.1.1347 🍺 /usr/local/Cellar/clojure/1.11.1.1347: 11 files, 19.5MB, built in 4 seconds ...
-
however
$ clj The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.
-
OK, install a Java
$ brew install openjdk ... ==> Installing openjdk ==> Pouring openjdk--20.0.1.ventura.bottle.tar.gz ...
-
however
$ clj The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.
-
scroll back up and read the Caveats from the above openjdk installation
... ==> Installing openjdk ==> Pouring openjdk--20.0.1.ventura.bottle.tar.gz ==> Caveats For the system Java wrappers to find this JDK, symlink it with sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk ...
-
OK, let’s do that
$ sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk $ clj Downloading: org/clojure/clojure/1.11.1/clojure-1.11.1.pom from central Downloading: org/clojure/spec.alpha/0.3.218/spec.alpha-0.3.218.pom from central Downloading: org/clojure/core.specs.alpha/0.2.62/core.specs.alpha-0.2.62.pom from central Downloading: org/clojure/pom.contrib/1.1.0/pom.contrib-1.1.0.pom from central Downloading: org/clojure/core.specs.alpha/0.2.62/core.specs.alpha-0.2.62.jar from central Downloading: org/clojure/spec.alpha/0.3.218/spec.alpha-0.3.218.jar from central Downloading: org/clojure/clojure/1.11.1/clojure-1.11.1.jar from central Clojure 1.11.1 user=>
Shall I create a PR to augment the MacOS installation instructions accordingly?