I am using Homebrew with the command brew install leiningen but trying lein repl
gives
java.lang.ClassCastException: java.lang.Character cannot be cast to java.uti
l.Map$Entr
followed by many pages ending with
clojure.main.main (main.java:37)
the same happens with Macports or supplied script, boot
installs perfectly with Homebrew. I am learning Clojure from the Brave and True book which needs lein repl
To "install" lein just download the download script from the web page and run it : https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
Hope it helps
Consider using sdkman
, even if leiningen is straightforward to use:
curl -s "https://get.sdkman.io" | bash
Then open a new terminal and type:
sdk install leiningen
Now try your:
lein repl
While you're at it, sdk
can be used to manage your Java installations. Never again worry about dirtying your system with various versions, as they all go in your home directory, cleanly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.